Click or drag to resize

SQLiteConnection Class

Represents an open connection to a SQLite database.
Inheritance Hierarchy
SystemObject
  SQLiteSQLiteConnection
    ff14bot.ManagersDatabase

Namespace:  SQLite
Assembly:  RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax
C#
public class SQLiteConnection : IDisposable

The SQLiteConnection type exposes the following members.

Constructors
  NameDescription
Public methodSQLiteConnection(String, Boolean)
Constructs a new SQLiteConnection and opens a SQLite database specified by databasePath.
Public methodSQLiteConnection(String, SQLiteOpenFlags, Boolean)
Constructs a new SQLiteConnection and opens a SQLite database specified by databasePath.
Top
Properties
  NameDescription
Public propertyBusyTimeout
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.
Public propertyDatabasePath
Public propertyHandle
Public propertyIsInTransaction
Public propertyStoreDateTimeAsTicks
Public propertyTableMappings
Returns the mappings from types to tables that the connection currently understands.
Public propertyTimeExecution
Public propertyTrace
Top
Methods
  NameDescription
Public methodCode exampleBeginTransaction
Begins a new transaction. Call Commit to end the transaction.
Public methodClose
Public methodCommit
Public methodCreateCommand
Creates a new SQLiteCommand given the command text with arguments. Place a '?' in the command text for each of the arguments.
Public methodCreateIndex(String, String, Boolean)
Creates an index for the specified table and column.
Public methodCreateIndex(String, String, Boolean)
Creates an index for the specified table and columns.
Public methodCreateIndex(String, String, String, Boolean)
Creates an index for the specified table and column.
Public methodCreateIndex(String, String, String, Boolean)
Creates an index for the specified table and columns.
Public methodCreateIndexT(ExpressionFuncT, Object, Boolean)
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.
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.
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.
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.
Public methodDelete(Object)
Deletes the given object from the database using its primary key.
Public methodDeleteT(Object)
Deletes the object with the specified primary key.
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?
Public methodDispose
Protected methodDispose(Boolean)
Public methodDropTableT
Executes a "drop table" on the database. This is non-recoverable.
Public methodEnableLoadExtension
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.
Public methodExecuteScalarT
Protected methodFinalize (Overrides ObjectFinalize.)
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).
Public methodFindT(ExpressionFuncT, Boolean)
Attempts to retrieve the first object that matches the predicate from the table associated with the specified type.
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).
Public methodGetT(ExpressionFuncT, Boolean)
Attempts to retrieve the first object that matches the predicate from the table associated with the specified type.
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).
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.
Public methodGetMappingT
Retrieves the mapping that is automatically generated for the given type.
Public methodGetTableInfo
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.
Public methodInsert(Object, String)
Inserts the given object and retrieves its auto incremented primary key if it has one.
Public methodInsert(Object, Type)
Inserts the given object and retrieves its auto incremented primary key if it has one.
Public methodInsert(Object, String, Type)
Inserts the given object and retrieves its auto incremented primary key if it has one.
Public methodInsertAll(IEnumerable)
Inserts all specified objects.
Public methodInsertAll(IEnumerable, String)
Inserts all specified objects.
Public methodInsertAll(IEnumerable, Type)
Inserts all specified objects.
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.
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.
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.
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.
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.
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.
Public methodRollback
Public methodRollbackTo
Rolls back the savepoint created by BeginTransaction or SaveTransactionPoint.
Public methodRunInTransaction
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.
Public methodTableT
Returns a queryable interface to the table represented by the given type.
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.
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.
Public methodUpdateAll
Updates all specified objects.
Top
Events
  NameDescription
Public eventTableChanged
Top
See Also