Inherits DbConnection.
|
| | KineticaConnection () |
| |
| | KineticaConnection (string connectionString) |
| |
| override void | ChangeDatabase (string databaseName) |
| |
| void | SetSchema (string schemaName) |
| | Sets the current schema (equivalent to SET SCHEMA command). More...
|
| |
| void | SetUser (string username) |
| | Sets the impersonated user context (equivalent to SET USER command). More...
|
| |
| void | ExecuteAsUser (string username) |
| | Executes as a specific user, pushing current context to stack. More...
|
| |
| void | RevertUser () |
| | Reverts to previous user context from ExecuteAsUser. More...
|
| |
| override void | Close () |
| |
| override void | Open () |
| |
| override async Task | OpenAsync (CancellationToken cancellationToken) |
| |
| long | FlushBatch () |
| | Flushes all pending batch inserts to the database. More...
|
| |
| async Task< long > | FlushBatchAsync (CancellationToken cancellationToken=default) |
| | Flushes all pending batch inserts to the database asynchronously. More...
|
| |
| override DataTable | GetSchema () |
| |
| override DataTable | GetSchema (string collectionName) |
| |
| override DataTable | GetSchema (string collectionName, string?[]? restrictionValues) |
| |
|
| override string | Database => _database |
| |
| override string | DataSource => _connectionStringBuilder?.Server ?? string.Empty |
| |
| override string | ServerVersion => "7.2" |
| |
| override ConnectionState | State => _state |
| |
| string? | ImpersonatedUser => _currentImpersonatedUser |
| | Gets the current impersonated user, if any. More...
|
| |
| int | PendingBatchCount => _batchManager?.GetTotalPendingCount() ?? 0 |
| | Gets the number of records currently pending in the batch buffer. More...
|
| |
Definition at line 10 of file KineticaAdo.cs.
◆ KineticaConnection() [1/2]
| KineticaAdo.KineticaConnection.KineticaConnection |
( |
| ) |
|
|
inline |
◆ KineticaConnection() [2/2]
| KineticaAdo.KineticaConnection.KineticaConnection |
( |
string |
connectionString | ) |
|
|
inline |
◆ BeginDbTransaction()
| override DbTransaction KineticaAdo.KineticaConnection.BeginDbTransaction |
( |
IsolationLevel |
isolationLevel | ) |
|
|
inlineprotected |
◆ ChangeDatabase()
| override void KineticaAdo.KineticaConnection.ChangeDatabase |
( |
string |
databaseName | ) |
|
|
inline |
◆ Close()
| override void KineticaAdo.KineticaConnection.Close |
( |
| ) |
|
|
inline |
◆ CreateDbCommand()
| override DbCommand KineticaAdo.KineticaConnection.CreateDbCommand |
( |
| ) |
|
|
inlineprotected |
◆ Dispose()
| override void KineticaAdo.KineticaConnection.Dispose |
( |
bool |
disposing | ) |
|
|
inlineprotected |
◆ ExecuteAsUser()
| void KineticaAdo.KineticaConnection.ExecuteAsUser |
( |
string |
username | ) |
|
|
inline |
Executes as a specific user, pushing current context to stack.
Use Revert() to return to previous context.
Definition at line 100 of file KineticaAdo.cs.
◆ FlushBatch()
| long KineticaAdo.KineticaConnection.FlushBatch |
( |
| ) |
|
|
inline |
Flushes all pending batch inserts to the database.
- Returns
- The number of records flushed.
Definition at line 325 of file KineticaAdo.cs.
◆ FlushBatchAsync()
| async Task<long> KineticaAdo.KineticaConnection.FlushBatchAsync |
( |
CancellationToken |
cancellationToken = default | ) |
|
|
inline |
Flushes all pending batch inserts to the database asynchronously.
- Parameters
-
| cancellationToken | Cancellation token. |
- Returns
- The number of records flushed.
Definition at line 339 of file KineticaAdo.cs.
◆ GetSchema() [1/3]
| override DataTable KineticaAdo.KineticaConnection.GetSchema |
( |
| ) |
|
|
inline |
◆ GetSchema() [2/3]
| override DataTable KineticaAdo.KineticaConnection.GetSchema |
( |
string |
collectionName | ) |
|
|
inline |
◆ GetSchema() [3/3]
| override DataTable KineticaAdo.KineticaConnection.GetSchema |
( |
string |
collectionName, |
|
|
string?? [] |
restrictionValues |
|
) |
| |
|
inline |
◆ Open()
| override void KineticaAdo.KineticaConnection.Open |
( |
| ) |
|
|
inline |
◆ OpenAsync()
| override async Task KineticaAdo.KineticaConnection.OpenAsync |
( |
CancellationToken |
cancellationToken | ) |
|
|
inline |
◆ RevertUser()
| void KineticaAdo.KineticaConnection.RevertUser |
( |
| ) |
|
|
inline |
Reverts to previous user context from ExecuteAsUser.
Definition at line 112 of file KineticaAdo.cs.
◆ SetSchema()
| void KineticaAdo.KineticaConnection.SetSchema |
( |
string |
schemaName | ) |
|
|
inline |
Sets the current schema (equivalent to SET SCHEMA command).
Definition at line 82 of file KineticaAdo.cs.
◆ SetUser()
| void KineticaAdo.KineticaConnection.SetUser |
( |
string |
username | ) |
|
|
inline |
Sets the impersonated user context (equivalent to SET USER command).
Requires appropriate permissions.
Definition at line 91 of file KineticaAdo.cs.
◆ Database
| override string KineticaAdo.KineticaConnection.Database => _database |
◆ DataSource
| override string KineticaAdo.KineticaConnection.DataSource => _connectionStringBuilder?.Server ?? string.Empty |
◆ ImpersonatedUser
| string? KineticaAdo.KineticaConnection.ImpersonatedUser => _currentImpersonatedUser |
Gets the current impersonated user, if any.
Definition at line 72 of file KineticaAdo.cs.
◆ PendingBatchCount
| int KineticaAdo.KineticaConnection.PendingBatchCount => _batchManager?.GetTotalPendingCount() ?? 0 |
Gets the number of records currently pending in the batch buffer.
Definition at line 319 of file KineticaAdo.cs.
◆ ServerVersion
| override string KineticaAdo.KineticaConnection.ServerVersion => "7.2" |
◆ State
| override ConnectionState KineticaAdo.KineticaConnection.State => _state |
◆ BatchInsertMode
| bool KineticaAdo.KineticaConnection.BatchInsertMode |
|
getset |
Gets or sets whether batch insert mode is enabled.
When enabled, INSERT statements are buffered and sent in batches for improved performance.
Definition at line 271 of file KineticaAdo.cs.
◆ BatchSize
| int KineticaAdo.KineticaConnection.BatchSize |
|
getset |
Gets or sets the batch size for batch insert operations.
Definition at line 297 of file KineticaAdo.cs.
◆ BatchUpdateOnExistingPk
| bool KineticaAdo.KineticaConnection.BatchUpdateOnExistingPk |
|
getset |
Gets or sets whether to update existing records with matching primary keys during batch inserts.
Definition at line 306 of file KineticaAdo.cs.
◆ ConnectionString
| override string???? KineticaAdo.KineticaConnection.ConnectionString |
|
getset |
◆ CurrentSchema
| string???? KineticaAdo.KineticaConnection.CurrentSchema |
|
getset |
Gets or sets the current schema for this session.
Can be set via SET SCHEMA command or programmatically.
Definition at line 64 of file KineticaAdo.cs.
The documentation for this class was generated from the following file: