import sys sys.path.append('../../') import hsdb class Parent(hsdb.dbtypes.RAMClass) : pass class Child(hsdb.dbtypes.RAMClass) : pass hsdb.rel_list.createList(Parent, Child, "", cascade = True) hsdb.registerTypes([Parent, Child]) hsdb.genDatabase("testlist", gen_user = True)
import sys sys.path.append('../../') import hsdb class Parent(hsdb.dbtypes.RAMClass) : pass class Child(hsdb.dbtypes.RAMClass) : pass hsdb.rel_vector.createVector(Parent, Child, "", cascade = True) hsdb.registerTypes([Parent, Child]) hsdb.genDatabase("testvector", gen_user = True)
import sys sys.path.append('../../') import hsdb class Parent(hsdb.dbtypes.RAMClass) : pass class Child(hsdb.dbtypes.RAMClass) : pass hsdb.rel_hash.createHash(Parent, Child, hsdb.dbtypes.Sym, "", cascade = True) hsdb.registerTypes([Parent, Child]) hsdb.genDatabase('testhash', gen_user = True)
import sys sys.path.append('../../') import hsdb class Parent(hsdb.dbtypes.RAMClass) : pass class Child(hsdb.dbtypes.RAMClass) : pass hsdb.rel_stack.createStack(Parent, Child, "", cascade = True) hsdb.registerTypes([Parent, Child]) hsdb.genDatabase('teststack', gen_user = True)