Exemplo n.º 1
0
 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)));
 }
Exemplo n.º 2
0
 public void Dispose()
 {
     if (context != null)
     {
         context.Dispose();
         context = null;
     }
 }
Exemplo n.º 3
0
 public PostgreSqlDatabase(PostgreSqlConnectionContext context, ILogWriter log)
 {
     this.log = log;
     connection = context.Connection;
 }