示例#1
0
 public static JdbcSchema create(
     SchemaPlus parentSchema, String name, DataSource dataSource, String catalog, String schema) {
   final Expression expression = Schemas.subSchemaExpression(parentSchema, name, JdbcSchema.class);
   final SqlDialect dialect = createDialect(dataSource);
   final JdbcConvention convention = JdbcConvention.of(dialect, expression, name);
   return new JdbcSchema(dataSource, dialect, convention, catalog, schema);
 }
示例#2
0
 public Expression getExpression(SchemaPlus parentSchema, String name) {
   return Schemas.subSchemaExpression(parentSchema, name, JdbcSchema.class);
 }