def create_another_db(): gateway = get_gateway() j_database = gateway.jvm.CatalogDatabaseImpl( {"k2": "v2"}, "this is another database.") return CatalogDatabase(j_database)
def create_db(): gateway = get_gateway() j_database = gateway.jvm.CatalogDatabaseImpl( {"k1": "v1"}, CatalogTestBase.test_comment) return CatalogDatabase(j_database)
def create_another_db(): return CatalogDatabase.create_instance({"k2": "v2"}, "this is another database.")
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()
def create_db(): return CatalogDatabase.create_instance({"k1": "v1"}, CatalogTestBase.test_comment)