import "mozIStorageConnection.idl";
Public Member Functions | |
| mozIStorageStatement | createStatement (in AUTF8String aSQLStatement) |
| void | executeSimpleSQL (in AUTF8String aSQLStatement) |
| boolean | tableExists (in AUTF8String aTableName) |
| void | beginTransaction () |
| void | commitTransaction () |
| void | rollbackTransaction () |
| void | createTable (in string aTableName, in string aTableSchema) |
| void | createFunction (in string aFunctionName, in long aNumArguments, in mozIStorageFunction aFunction) |
| void | createTrigger (in string aTriggerName, in long aTriggerType, in string aTableName, in string aTriggerFunction, in string aParameters) |
| void | removeTrigger (in string aTriggerName) |
Public Attributes | |
| readonly attribute boolean | connectionReady |
| readonly attribute AUTF8String | databaseName |
| readonly attribute long long | lastInsertRowID |
| readonly attribute long | lastError |
| readonly attribute AUTF8String | lastErrorString |
| readonly attribute boolean | transactionInProgress |
| const long | TRIGGER_EVENT_DELETE = 1 |
| const long | TRIGGER_EVENT_INSERT = 2 |
| const long | TRIGGER_EVENT_UPDATE = 3 |
|
|
Begin a new transaction. If a transaction is active,
|
|
|
Commits the current transaction. If no transaction is active,
|
|
||||||||||||||||
|
Create a new SQLite function |
|
|
Create a mozIStorageStatement for the given SQL expression. The expression may use ?0 ?1 etc. to indicate numbered arguments.
|
|
||||||||||||
|
Create the table with the given name and schema. If the table already exists with the given schema, the non-error NS_STORAGE_TABLE_EXISTS is returned. If the table exists but with a different schema, NS_ERROR_STORAGE_TABLE_CONFLICT (?) is thrown.
|
|
||||||||||||||||||||||||
|
|
|
|
Execute a SQL expression, expecting no arguments.
|
|
|
|
|
|
Rolls back the current transaction. If no transaction is active,
|
|
|
Check if the given table exists.
|
|
|
whether the database is open or not |
|
|
the current database filename |
|
|
lastError returns the last error code |
|
|
lastErrorString returns the last error as a string |
|
|
lastInsertRowID returns the row ID from the last INSERT operation. |
|
|
Returns true if a transaction is active on this connection. |
|
|
Create a new trigger. Note that we only support AFTER triggers here, not BEFORE (so that we can support IPC notification of triggers). All triggers created this way are TEMPORARY triggers, i.e. they are only valid for the duration of this connection. Without this, triggers would persist between connections, even if the functions they refer to may no longer be defined; this would be bad. aParameters is a comma-separated list of parameters, referencing either "new.*" or "old.*", as appropriate for the trigger event type. |
|
|
|
|
|
|
1.4.5