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