mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 22:45:44 +00:00
added query() method, that will return Lazy Object
This commit is contained in:
parent
dc8138f649
commit
69c3c93ae6
@ -8,6 +8,7 @@ import tarantool
|
||||
|
||||
from planetmint.config import Config
|
||||
from planetmint.transactions.common.exceptions import ConfigurationError
|
||||
from planetmint.utils import Lazy
|
||||
from planetmint.backend.connection import Connection
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@ -47,6 +48,9 @@ class TarantoolDBConnection(Connection):
|
||||
f.close()
|
||||
return "".join(execute).encode()
|
||||
|
||||
def query(self):
|
||||
return Lazy
|
||||
|
||||
def _reconnect(self):
|
||||
self.db_connect = tarantool.connect(host=self.host, port=self.port)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user