protected Postgres10_0Generator([NotNull] PostgresQuoter quoter, [NotNull] IOptions <GeneratorOptions> generatorOptions, [NotNull] ITypeMap typeMap) : base(new Postgres10_0Column(quoter, typeMap), quoter, generatorOptions) { }
public PostgresGenerator( [NotNull] PostgresQuoter quoter) : this(quoter, new OptionsWrapper <GeneratorOptions>(new GeneratorOptions())) { }
public Postgres10_0Generator([NotNull] PostgresQuoter quoter, [NotNull] IOptions <GeneratorOptions> generatorOptions) : base(new Postgres10_0Column(quoter, new Postgres92.Postgres92TypeMap()), quoter, generatorOptions) { }
public void SetUp() { quoter = new PostgresQuoter(); }
public PostgresGenerator( [NotNull] PostgresQuoter quoter, [NotNull] IOptions <GeneratorOptions> generatorOptions) : base(new PostgresColumn(quoter, new PostgresTypeMap()), quoter, new PostgresDescriptionGenerator(quoter), generatorOptions) { }
public void CallingIndexExistsReturnsTrueIfIndexExistsWithSchema() { var quoter = new PostgresQuoter(); using (var table = new PostgresTestTable(Processor, "TestSchema", "id int")) { var idxName = string.Format("\"idx_{0}\"", quoter.UnQuote(table.Name)); var cmd = table.Connection.CreateCommand(); cmd.Transaction = table.Transaction; cmd.CommandText = string.Format("CREATE INDEX {0} ON {1} (id)", idxName,table.NameWithSchema); cmd.ExecuteNonQuery(); Processor.IndexExists("TestSchema", table.Name, idxName).ShouldBeTrue(); } }
public PostgresDescriptionGenerator([NotNull] PostgresQuoter quoter) { Quoter = quoter; }