示例#1
0
文件: list.py 项目: ivandzen/HSDB
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)
示例#2
0
文件: vector.py 项目: ivandzen/HSDB
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)
示例#3
0
文件: hash.py 项目: ivandzen/HSDB
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)
示例#4
0
文件: stack.py 项目: ivandzen/HSDB
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)