Ejemplo n.º 1
0
func createDB(path string) {
	tm := tm.Create(path)
	dm := dm.Create(path, _DEFAULT_MEM, tm)
	sm := sm.NewSerializabilityManager(tm, dm)
	tbm.Create(path, sm, dm)
	tm.Close()
	dm.Close()
}
Ejemplo n.º 2
0
func openDB(path string, mem int64) {
	tm := tm.Open(path)
	dm := dm.Open(path, mem, tm)
	sm := sm.NewSerializabilityManager(tm, dm)
	tbm := tbm.Open(path, sm, dm)
	sv := server.NewServer(_NET, _ADDRESS, tbm)
	sv.Start()
}