예제 #1
0
        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);
        }
예제 #3
0
 public PostgresStatement(PostgresDatabase parent)
 {
     _parent = parent;
     //SetError((SpiReturn)pg_spi_connect(), "connect");
 }