示例#1
0
 def create_another_db():
     gateway = get_gateway()
     j_database = gateway.jvm.CatalogDatabaseImpl(
         {"k2": "v2"}, "this is another database.")
     return CatalogDatabase(j_database)
示例#2
0
 def create_db():
     gateway = get_gateway()
     j_database = gateway.jvm.CatalogDatabaseImpl(
         {"k1": "v1"}, CatalogTestBase.test_comment)
     return CatalogDatabase(j_database)
示例#3
0
 def create_another_db():
     return CatalogDatabase.create_instance({"k2": "v2"},
                                            "this is another database.")
示例#4
0
 def check_derby_catalog(self, obj: DerbyCatalog):
     self.assertTrue(isinstance(obj, DerbyCatalog))
     obj.open()
     obj.create_database("derby_schema", CatalogDatabase(None), True)
     self.assertTrue(len(obj.list_databases()) > 0)
     obj.close()
示例#5
0
 def create_db():
     return CatalogDatabase.create_instance({"k1": "v1"},
                                            CatalogTestBase.test_comment)