public PostgreSqlProvider(PostgreSqlConnectionPool connectionPool, ILogWriter log, string schema = "public") { this.log = log; this.schema = schema; context = connectionPool.GetContext(); db = new PostgreSqlDatabase(context, log.NewRegion(nameof(PostgreSqlDatabase))); }
public void Dispose() { if (context != null) { context.Dispose(); context = null; } }
public PostgreSqlDatabase(PostgreSqlConnectionContext context, ILogWriter log) { this.log = log; connection = context.Connection; }