Database Class |
Namespace: ff14bot.Managers
public class Database : SQLiteConnection
The Database type exposes the following members.
Name | Description | |
---|---|---|
BusyTimeout |
Sets a busy handler to sleep the specified amount of time when a table is locked.
The handler will sleep multiple times until a total time of BusyTimeout has accumulated.
(Inherited from SQLiteConnection.) | |
DatabasePath | (Inherited from SQLiteConnection.) | |
Handle | (Inherited from SQLiteConnection.) | |
IsInTransaction |
Whether BeginTransaction has been called and the database is waiting for a Commit.
(Inherited from SQLiteConnection.) | |
StoreDateTimeAsTicks | (Inherited from SQLiteConnection.) | |
TableMappings |
Returns the mappings from types to tables that the connection
currently understands.
(Inherited from SQLiteConnection.) | |
TimeExecution | (Inherited from SQLiteConnection.) | |
Trace | (Inherited from SQLiteConnection.) |
Name | Description | |
---|---|---|
AllT | ||
AllAsDictionaryT | ||
AllAuras | ||
AllBattleNPCs | ||
AllEventNPCs | ||
AllGatheringResults | ||
AllItems | ||
AllPetSpells | ||
AllPurifyDBResults | ||
AllSpells | ||
AllZones | ||
BeginTransaction |
Begins a new transaction. Call Commit to end the transaction.
(Inherited from SQLiteConnection.) | |
Close | (Inherited from SQLiteConnection.) | |
Commit |
Commits the transaction that was begun by BeginTransaction.
(Inherited from SQLiteConnection.) | |
CreateCommand |
Creates a new SQLiteCommand given the command text with arguments. Place a '?'
in the command text for each of the arguments.
(Inherited from SQLiteConnection.) | |
CreateIndex(String, String, Boolean) |
Creates an index for the specified table and column.
(Inherited from SQLiteConnection.) | |
CreateIndex(String, String, Boolean) |
Creates an index for the specified table and columns.
(Inherited from SQLiteConnection.) | |
CreateIndex(String, String, String, Boolean) |
Creates an index for the specified table and column.
(Inherited from SQLiteConnection.) | |
CreateIndex(String, String, String, Boolean) |
Creates an index for the specified table and columns.
(Inherited from SQLiteConnection.) | |
CreateIndexT(ExpressionFuncT, Object, Boolean) | (Inherited from SQLiteConnection.) | |
CreateTable(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.) | |
CreateTableT(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.) | |
DeferredQuery(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.) | |
DeferredQueryT(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.) | |
Delete(Object) |
Deletes the given object from the database using its primary key.
(Inherited from SQLiteConnection.) | |
DeleteAllT |
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.) | |
Dispose | (Inherited from SQLiteConnection.) | |
Dispose(Boolean) | (Inherited from SQLiteConnection.) | |
DropTableT |
Executes a "drop table" on the database. This is non-recoverable.
(Inherited from SQLiteConnection.) | |
EnableLoadExtension | (Inherited from SQLiteConnection.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Execute |
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.) | |
ExecuteScalarT | (Inherited from SQLiteConnection.) | |
Finalize | (Inherited from SQLiteConnection.) | |
Find(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.) | |
FindT(ExpressionFuncT, Boolean) |
Attempts to retrieve the first object that matches the predicate from the table
associated with the specified type.
(Inherited from SQLiteConnection.) | |
FindT(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.) | |
GetT(ExpressionFuncT, Boolean) |
Attempts to retrieve the first object that matches the predicate from the table
associated with the specified type.
(Inherited from SQLiteConnection.) | |
GetT(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.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetMapping(Type, CreateFlags) |
Retrieves the mapping that is automatically generated for the given type.
(Inherited from SQLiteConnection.) | |
GetMappingT |
Retrieves the mapping that is automatically generated for the given type.
(Inherited from SQLiteConnection.) | |
GetTableInfo | (Inherited from SQLiteConnection.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Insert(Object) |
Inserts the given object and retrieves its
auto incremented primary key if it has one.
(Inherited from SQLiteConnection.) | |
Insert(Object, String) |
Inserts the given object and retrieves its
auto incremented primary key if it has one.
(Inherited from SQLiteConnection.) | |
Insert(Object, Type) |
Inserts the given object and retrieves its
auto incremented primary key if it has one.
(Inherited from SQLiteConnection.) | |
Insert(Object, String, Type) |
Inserts the given object and retrieves its
auto incremented primary key if it has one.
(Inherited from SQLiteConnection.) | |
InsertAll(IEnumerable) |
Inserts all specified objects.
(Inherited from SQLiteConnection.) | |
InsertAll(IEnumerable, String) |
Inserts all specified objects.
(Inherited from SQLiteConnection.) | |
InsertAll(IEnumerable, Type) |
Inserts all specified objects.
(Inherited from SQLiteConnection.) | |
InsertOrReplace(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.) | |
InsertOrReplace(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.) | |
InsertSpells | ||
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NewCommand |
Creates a new SQLiteCommand. Can be overridden to provide a sub-class.
(Inherited from SQLiteConnection.) | |
Query(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.) | |
QueryT(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.) | |
Release |
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.) | |
Rollback |
Rolls back the transaction that was begun by BeginTransaction or SaveTransactionPoint.
(Inherited from SQLiteConnection.) | |
RollbackTo |
Rolls back the savepoint created by BeginTransaction or SaveTransactionPoint.
(Inherited from SQLiteConnection.) | |
RunInTransaction | (Inherited from SQLiteConnection.) | |
SaveTransactionPoint |
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.) | |
TableT |
Returns a queryable interface to the table represented by the given type.
(Inherited from SQLiteConnection.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Update(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.) | |
Update(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.) | |
UpdateAll |
Updates all specified objects.
(Inherited from SQLiteConnection.) |
Name | Description | |
---|---|---|
TableChanged | (Inherited from SQLiteConnection.) |