Constructor PostgreSqlStorage
- Namespace
- Millrace.Storage.PostgreSql
- Assembly
- Millrace.Storage.PostgreSql.dll
PostgreSqlStorage(NpgsqlDataSource, TimeProvider?, PostgreSqlStorageOptions?)
Creates the provider over an existing data source.
public PostgreSqlStorage(NpgsqlDataSource dataSource, TimeProvider? time = null, PostgreSqlStorageOptions? options = null)
Parameters
dataSourceNpgsqlDataSourcetimeTimeProvideroptionsPostgreSqlStorageOptions
Remarks
time defaults to System and every now
comparison goes through it — database time is never read. That is what lets the conformance
kit drive this provider with a fake clock exactly as it drives the in-memory one, and it is
also why a multi-node deployment has to keep its clocks synchronized.