Пример #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");
 }