public static PostgresDatabase Create(string name, ISqlEvaluateSerial evaluator)
        {
            var pgd = new PostgresDatabase {
                _evaluator = evaluator
            };

            pgd.Open(null);
            return(pgd);
        }
示例#2
0
        //-------------------------------------------------------------------------
        // Create a new instance of PG connection and interop
        public static PostgresConnect Create(IExecuteGateway gateway, PostgresDatabase database)
        {
            var pgd = new PostgresConnect()
            {
                _gateway  = gateway,
                _database = database,
            };

            // the initial functions; more will be added, to mirror the catalog
            pgd.AddFunctions();
            return(pgd);
        }
 public PostgresStatement(PostgresDatabase parent)
 {
     _parent = parent;
     //SetError((SpiReturn)pg_spi_connect(), "connect");
 }