Exemple #1
0
        public IDbConnection GetNewSchemalessConnection()
        {
            var schemalessConfig = new PgSQLPluginConfiguration();

            schemalessConfig.CopyFrom(Config);
            schemalessConfig.Database = null;
            return(new NpgsqlConnection(schemalessConfig.GetConnectionString()));
        }
Exemple #2
0
        public void SetConfiguration(IDictionary <string, object> settings)
        {
            Config = new PgSQLPluginConfiguration();
            ObjectReflector o = new ObjectReflector(Config);

            foreach (var a in settings)
            {
                o[a.Key] = a.Value;
            }
        }
Exemple #3
0
 public PgSQLPlugin(PgSQLPluginConfiguration cfg)
 {
     Config = cfg;
 }