public static void SimpleCreate()
        {
            var statement = new CreateSchemaStatement("test");

            var sql      = statement.ToString();
            var expected = "CREATE SCHEMA test";

            Assert.AreEqual(expected, sql);
        }
        public static void SimpleCreate()
        {
            var statement = new CreateSchemaStatement("test");

            var sql = statement.ToString();
            var expected = "CREATE SCHEMA test";

            Assert.AreEqual(expected, sql);
        }
        public void CreateNewSchema()
        {
            const string schemaName = "Sch1";
            var          statement  = new CreateSchemaStatement(schemaName);

            statement.Execute(Query);

            var exists = Query.SchemaExists(schemaName);

            Assert.IsTrue(exists);
        }
示例#4
0
 protected virtual SqlStatement VisitCreateSchema(CreateSchemaStatement statement)
 {
     return new CreateSchemaStatement(statement.SchemaName);
 }
示例#5
0
 protected virtual SqlStatement VisitCreateSchema(CreateSchemaStatement statement)
 {
     return(new CreateSchemaStatement(statement.SchemaName));
 }