예제 #1
0
func setupTestData(db *levigo.DB) {
	abkleveldb.PushKeyVal("key::abc", "key::abc:name", db)
	abkleveldb.PushKeyVal("val::abc:name", "ABC XYZ", db)
	abkleveldb.PushKeyVal("key::abc:name", "key::abc:name:first,key::abc:name:last", db)
	abkleveldb.PushKeyVal("val::abc:name:first", "ABC", db)
	abkleveldb.PushKeyVal("val::abc:name:last", "XYZ", db)
}
func setupTestData() {
	db = abkleveldb.CreateDB(test_dbpath)
	abkleveldb.PushKeyVal("upstate:2014:January:2:12:1:20", "down", db)
	abklevigoNS.PushNS("upstate:2014:January:2:12:1:20", "down", db)
	abklevigoNS.PushNS("upstate:2014:January:2:12:11:20", "up", db)
}
예제 #3
0
func PushKeyVal(key string, val string) bool {
	return abkleveldb.PushKeyVal(key, val, db)
}