mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 15:05:49 +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.config import Config
|
||||||
from planetmint.transactions.common.exceptions import ConfigurationError
|
from planetmint.transactions.common.exceptions import ConfigurationError
|
||||||
|
from planetmint.utils import Lazy
|
||||||
from planetmint.backend.connection import Connection
|
from planetmint.backend.connection import Connection
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
@ -47,6 +48,9 @@ class TarantoolDBConnection(Connection):
|
|||||||
f.close()
|
f.close()
|
||||||
return "".join(execute).encode()
|
return "".join(execute).encode()
|
||||||
|
|
||||||
|
def query(self):
|
||||||
|
return Lazy
|
||||||
|
|
||||||
def _reconnect(self):
|
def _reconnect(self):
|
||||||
self.db_connect = tarantool.connect(host=self.host, port=self.port)
|
self.db_connect = tarantool.connect(host=self.host, port=self.port)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user