Packagecom.almirun.common.data
Classpublic class BatchedQuery

Encapsulates the command to run a batch of SQL statements

Typically this will be a set of INSERT statements, perhaps with a CREATE TABLE statement.



Public Methods
 MethodDefined by
  
BatchedQuery(fileUri:String, connection:SQLConnection)
Easy way to execute a batch of SQL statements from a file
BatchedQuery
  
execute():void
BatchedQuery
Constructor detail
BatchedQuery()constructor
public function BatchedQuery(fileUri:String, connection:SQLConnection)

Easy way to execute a batch of SQL statements from a file

Parameters
fileUri:String — The location of the file containing the SQL statements
 
connection:SQLConnection — The connection to the Sqlite database. Should be an open connection in SQLMode.UPDATE mode. Will probably work in asynchronous mode, although I've only tested in synchronous mode.
Method detail
execute()method
public function execute():void