mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 23:15:44 +00:00
_spacing_
This commit is contained in:
parent
56c8f72570
commit
9676578e6c
@ -7,7 +7,6 @@ class TarantoolDB:
|
|||||||
def __init__(self, host, port, username, password):
|
def __init__(self, host, port, username, password):
|
||||||
self.conn = tarantool.connect(host=host, port=port, user=username, password=password)
|
self.conn = tarantool.connect(host=host, port=port, user=username, password=password)
|
||||||
|
|
||||||
|
|
||||||
def connect_to_sapce(self, spacename):
|
def connect_to_sapce(self, spacename):
|
||||||
self.conn.space(spacename)
|
self.conn.space(spacename)
|
||||||
|
|
||||||
@ -22,9 +21,6 @@ def init_tarantool():
|
|||||||
raise Exception("There is a instance of tarantool already created in %s" + os.getcwd() + "/tarantool_snap")
|
raise Exception("There is a instance of tarantool already created in %s" + os.getcwd() + "/tarantool_snap")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def drop_tarantool():
|
def drop_tarantool():
|
||||||
if os.path.exists(os.path.join(os.getcwd(), 'tarantool', 'init.lua')) is not True:
|
if os.path.exists(os.path.join(os.getcwd(), 'tarantool', 'init.lua')) is not True:
|
||||||
path = os.getcwd()
|
path = os.getcwd()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user