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); }
protected virtual SqlStatement VisitCreateSchema(CreateSchemaStatement statement) { return new CreateSchemaStatement(statement.SchemaName); }
protected virtual SqlStatement VisitCreateSchema(CreateSchemaStatement statement) { return(new CreateSchemaStatement(statement.SchemaName)); }