Click or drag to resize
DatabaseConnection Class
Extensions methods for IDatabaseConnection
Inheritance Hierarchy
SystemObject
  SQLitePCL.prettyDatabaseConnection

Namespace: SQLitePCL.pretty
Assembly: SQLitePCL.pretty (in SQLitePCL.pretty.dll) Version: 1.0.0.0 (1.0.0)
Syntax
public static class DatabaseConnection

The DatabaseConnection type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBackup
Performs a full backup from This to destConn.
Public methodStatic memberExecute(IDatabaseConnection, String)
Compiles and executes a SQL statement.
Public methodStatic memberExecute(IDatabaseConnection, String, Object)
Compiles and executes a SQL statement with the provided bind parameter values.
Public methodStatic memberExecuteAll
Compiles and executes multiple SQL statements.
Public methodStatic memberGetFileName
Returns the filename associated with the database.
Public methodStatic memberOpenBlob
Opens the blob located by the ColumnInfo and rowid for incremental I/O as a Stream.
Public methodStatic memberPrepareAll
Compiles one or more SQL statements.
Public methodStatic memberPrepareStatement
Compiles a SQL statement.
Public methodStatic memberQuery(IDatabaseConnection, String)
Compiles a SQL statement, returning the an IEnumerableT of rows in the result set.
Public methodStatic memberQuery(IDatabaseConnection, String, Object)
Compiles a SQL statement with provided bind parameter values, returning the an IEnumerableT of rows in the result set.
Public methodStatic memberRunInTransaction(IDatabaseConnection, ActionIDatabaseConnection)
Runs the Action action in a transaction and returns the function result. If the database is not currently in a transaction, a new transaction is created using BeginTransaction with TransactionMode.Deferred and committed. Otherwise the transaction is created within a savepoint block but not fully committed to the database until the enclosing transaction is committed.
Public methodStatic memberRunInTransaction(IDatabaseConnection, ActionIDatabaseConnection, TransactionMode)
Runs the Action action in a transaction and returns the function result. If the database is not currently in a transaction, a new transaction is created using the provided TransactionMode and committed. Otherwise the transaction is created within a savepoint block but not fully committed to the database until the enclosing transaction is committed.
Public methodStatic memberRunInTransactionT(IDatabaseConnection, FuncIDatabaseConnection, T)
Runs the function f in a transaction and returns the function result. If the database is not currently in a transaction, a new transaction is created using BeginTransaction with TransactionMode.Deferred and committed. Otherwise the transaction is created within a savepoint block but not fully committed to the database until the enclosing transaction is committed.
Public methodStatic memberRunInTransactionT(IDatabaseConnection, FuncIDatabaseConnection, T, TransactionMode)
Runs the function f in a transaction and returns the function result. If the database is not currently in a transaction, a new transaction is created using the provided TransactionMode and committed. Otherwise the transaction is created within a savepoint block but not fully committed to the database until the enclosing transaction is committed.
Public methodStatic memberTryRunInTransaction(IDatabaseConnection, ActionIDatabaseConnection)
Runs the Action action in a transaction and returns the function result. If the database is not currently in a transaction, a new transaction is created using BeginTransaction with TransactionMode.Deferred and committed. Otherwise the transaction is created within a savepoint block but not fully committed to the database until the enclosing transaction is committed.
Public methodStatic memberTryRunInTransaction(IDatabaseConnection, ActionIDatabaseConnection, TransactionMode)
Runs the Action action in a transaction and returns the function result. If the database is not currently in a transaction, a new transaction is created using the provided TransactionMode and committed. Otherwise the transaction is created within a savepoint block but not fully committed to the database until the enclosing transaction is committed.
Public methodStatic memberTryRunInTransactionT(IDatabaseConnection, FuncIDatabaseConnection, T, T)
Runs the function f in a transaction and returns the function result. If the database is not currently in a transaction, a new transaction is created using BeginTransaction with TransactionMode.Deferred and committed. Otherwise the transaction is created within a savepoint block but not fully committed to the database until the enclosing transaction is committed.
Public methodStatic memberTryRunInTransactionT(IDatabaseConnection, FuncIDatabaseConnection, T, TransactionMode, T)
Runs the function f in a transaction and returns the function result. If the database is not currently in a transaction, a new transaction is created using the provided TransactionMode and committed. Otherwise the transaction is created within a savepoint block but not fully committed to the database until the enclosing transaction is committed.
Public methodStatic memberVacuum
Executes the SQLite VACUUM command
Public methodStatic memberWalCheckPoint
Checkpoint the database name dbName.
Top
See Also