SqlLocalConnection extends Connection, implements ISqlConnection, and provides in-process SQL access to an opened database through a local SQL engine.
public class SqlLocalConnection : Connection, ISqlConnection {
public SqlLocalConnection(Database db);
public SqlLocalConnection(Connection con);
public IDatabaseWrapper Wrapper { get; }
public SqlResultSet ExecuteQuery(String query, params Object[] args);
public int ExecuteStatement(String stmt, params Object[] args);
public override void StartTransaction(Database.TransactionType type, Database.TransactionPriority pri, Database.IsolationLevel level);
public override bool CommitTransaction();
public override void RollbackTransaction();
public override void Disconnect();
public override void Dispose();
public void Grab();
public void DetachResultSet(SqlResultSet result);
public IntPtr GetEngine();
}
Connection. This overload opens a SQL engine on top of the existing database connection and marks the SQL connection as a copy, so disposing it does not disconnect the original base connection.IDatabaseWrapper instance used for low-level SQL engine operations.SqlResultSet. The returned result remains attached to this connection until it is disposed or the connection is disconnected. Throws SqlException if the connection has already been closed.SqlException if the connection has already been closed.false if no SQL transaction is active.Database, it also disconnects the base Connection; if it was created from an existing Connection, only the SQL engine owned by this object is closed.Disconnect().SqlResultSet when the result is disposed. It removes the disposed result from the connection's internal set of attached result sets. Application code should not call this method directly.SqlResultSet objects at the same time. All attached results are disposed automatically when the connection is disconnected.Grab() is provided to rebind the engine to the current thread when needed. It does not make concurrent use of the same connection object safe.params Object[] values and bound to ? placeholders by position.