Click or drag to resize

Database Methods

The Database type exposes the following members.

Methods
  NameDescription
Public methodAllT
Public methodAllAsDictionaryT
Public methodAllAuras
Public methodAllBattleNPCs
Public methodAllEventNPCs
Public methodAllGatheringResults
Public methodAllItems
Public methodAllPetSpells
Public methodAllPurifyDBResults
Public methodAllSpells
Public methodAllZones
Public methodCode exampleBeginTransaction
Begins a new transaction. Call Commit to end the transaction.
(Inherited from SQLiteConnection.)
Public methodClose (Inherited from SQLiteConnection.)
Public methodCommit (Inherited from SQLiteConnection.)
Public methodCreateCommand
Creates a new SQLiteCommand given the command text with arguments. Place a '?' in the command text for each of the arguments.
(Inherited from SQLiteConnection.)
Public methodCreateIndex(String, String, Boolean)
Creates an index for the specified table and column.
(Inherited from SQLiteConnection.)
Public methodCreateIndex(String, String, Boolean)
Creates an index for the specified table and columns.
(Inherited from SQLiteConnection.)
Public methodCreateIndex(String, String, String, Boolean)
Creates an index for the specified table and column.
(Inherited from SQLiteConnection.)
Public methodCreateIndex(String, String, String, Boolean)
Creates an index for the specified table and columns.
(Inherited from SQLiteConnection.)
Public methodCreateIndexT(ExpressionFuncT, Object, Boolean) (Inherited from SQLiteConnection.)
Public methodCreateTable(Type, CreateFlags)
Executes a "create table if not exists" on the database. It also creates any specified indexes on the columns of the table. It uses a schema automatically generated from the specified type. You can later access this schema by calling GetMapping.
(Inherited from SQLiteConnection.)
Public methodCreateTableT(CreateFlags)
Executes a "create table if not exists" on the database. It also creates any specified indexes on the columns of the table. It uses a schema automatically generated from the specified type. You can later access this schema by calling GetMapping.
(Inherited from SQLiteConnection.)
Public methodDeferredQuery(TableMapping, String, Object)
Creates a SQLiteCommand given the command text (SQL) with arguments. Place a '?' in the command text for each of the arguments and then executes that command. It returns each row of the result using the specified mapping. This function is only used by libraries in order to query the database via introspection. It is normally not used.
(Inherited from SQLiteConnection.)
Public methodDeferredQueryT(String, Object)
Creates a SQLiteCommand given the command text (SQL) with arguments. Place a '?' in the command text for each of the arguments and then executes that command. It returns each row of the result using the mapping automatically generated for the given type.
(Inherited from SQLiteConnection.)
Public methodDelete(Object)
Deletes the given object from the database using its primary key.
(Inherited from SQLiteConnection.)
Public methodDeleteAllT
Deletes all the objects from the specified table. WARNING WARNING: Let me repeat. It deletes ALL the objects from the specified table. Do you really want to do that?
(Inherited from SQLiteConnection.)
Public methodDispose (Inherited from SQLiteConnection.)
Protected methodDispose(Boolean) (Inherited from SQLiteConnection.)
Public methodDropTableT
Executes a "drop table" on the database. This is non-recoverable.
(Inherited from SQLiteConnection.)
Public methodEnableLoadExtension (Inherited from SQLiteConnection.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecute
Creates a SQLiteCommand given the command text (SQL) with arguments. Place a '?' in the command text for each of the arguments and then executes that command. Use this method instead of Query when you don't expect rows back. Such cases include INSERTs, UPDATEs, and DELETEs. You can set the Trace or TimeExecution properties of the connection to profile execution.
(Inherited from SQLiteConnection.)
Public methodExecuteScalarT (Inherited from SQLiteConnection.)
Protected methodFinalize (Inherited from SQLiteConnection.)
Public methodFind(Object, TableMapping)
Attempts to retrieve an object with the given primary key from the table associated with the specified type. Use of this method requires that the given type have a designated PrimaryKey (using the PrimaryKeyAttribute).
(Inherited from SQLiteConnection.)
Public methodFindT(ExpressionFuncT, Boolean)
Attempts to retrieve the first object that matches the predicate from the table associated with the specified type.
(Inherited from SQLiteConnection.)
Public methodFindT(Object)
Attempts to retrieve an object with the given primary key from the table associated with the specified type. Use of this method requires that the given type have a designated PrimaryKey (using the PrimaryKeyAttribute).
(Inherited from SQLiteConnection.)
Public methodGetT(ExpressionFuncT, Boolean)
Attempts to retrieve the first object that matches the predicate from the table associated with the specified type.
(Inherited from SQLiteConnection.)
Public methodGetT(Object)
Attempts to retrieve an object with the given primary key from the table associated with the specified type. Use of this method requires that the given type have a designated PrimaryKey (using the PrimaryKeyAttribute).
(Inherited from SQLiteConnection.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetMapping(Type, CreateFlags)
Retrieves the mapping that is automatically generated for the given type.
(Inherited from SQLiteConnection.)
Public methodGetMappingT
Retrieves the mapping that is automatically generated for the given type.
(Inherited from SQLiteConnection.)
Public methodGetTableInfo (Inherited from SQLiteConnection.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsert(Object)
Inserts the given object and retrieves its auto incremented primary key if it has one.
(Inherited from SQLiteConnection.)
Public methodInsert(Object, String)
Inserts the given object and retrieves its auto incremented primary key if it has one.
(Inherited from SQLiteConnection.)
Public methodInsert(Object, Type)
Inserts the given object and retrieves its auto incremented primary key if it has one.
(Inherited from SQLiteConnection.)
Public methodInsert(Object, String, Type)
Inserts the given object and retrieves its auto incremented primary key if it has one.
(Inherited from SQLiteConnection.)
Public methodInsertAll(IEnumerable)
Inserts all specified objects.
(Inherited from SQLiteConnection.)
Public methodInsertAll(IEnumerable, String)
Inserts all specified objects.
(Inherited from SQLiteConnection.)
Public methodInsertAll(IEnumerable, Type)
Inserts all specified objects.
(Inherited from SQLiteConnection.)
Public methodInsertOrReplace(Object)
Inserts the given object and retrieves its auto incremented primary key if it has one. If a UNIQUE constraint violation occurs with some pre-existing object, this function deletes the old object.
(Inherited from SQLiteConnection.)
Public methodInsertOrReplace(Object, Type)
Inserts the given object and retrieves its auto incremented primary key if it has one. If a UNIQUE constraint violation occurs with some pre-existing object, this function deletes the old object.
(Inherited from SQLiteConnection.)
Public methodInsertSpells
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNewCommand
Creates a new SQLiteCommand. Can be overridden to provide a sub-class.
(Inherited from SQLiteConnection.)
Public methodQuery(TableMapping, String, Object)
Creates a SQLiteCommand given the command text (SQL) with arguments. Place a '?' in the command text for each of the arguments and then executes that command. It returns each row of the result using the specified mapping. This function is only used by libraries in order to query the database via introspection. It is normally not used.
(Inherited from SQLiteConnection.)
Public methodQueryT(String, Object)
Creates a SQLiteCommand given the command text (SQL) with arguments. Place a '?' in the command text for each of the arguments and then executes that command. It returns each row of the result using the mapping automatically generated for the given type.
(Inherited from SQLiteConnection.)
Public methodRelease
Releases a savepoint returned from SaveTransactionPoint. Releasing a savepoint makes changes since that savepoint permanent if the savepoint began the transaction, or otherwise the changes are permanent pending a call to Commit. The RELEASE command is like a COMMIT for a SAVEPOINT.
(Inherited from SQLiteConnection.)
Public methodRollback (Inherited from SQLiteConnection.)
Public methodRollbackTo
Rolls back the savepoint created by BeginTransaction or SaveTransactionPoint.
(Inherited from SQLiteConnection.)
Public methodRunInTransaction (Inherited from SQLiteConnection.)
Public methodSaveTransactionPoint
Creates a savepoint in the database at the current point in the transaction timeline. Begins a new transaction if one is not in progress. Call RollbackTo(String) to undo transactions since the returned savepoint. Call Release(String) to commit transactions after the savepoint returned here. Call Commit to end the transaction, committing all changes.
(Inherited from SQLiteConnection.)
Public methodTableT
Returns a queryable interface to the table represented by the given type.
(Inherited from SQLiteConnection.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate(Object)
Updates all of the columns of a table using the specified object except for its primary key. The object is required to have a primary key.
(Inherited from SQLiteConnection.)
Public methodUpdate(Object, Type)
Updates all of the columns of a table using the specified object except for its primary key. The object is required to have a primary key.
(Inherited from SQLiteConnection.)
Public methodUpdateAll
Updates all specified objects.
(Inherited from SQLiteConnection.)
Top
See Also