mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 15:05:49 +00:00
function create_database will call create_tables only for tarantool connection
This commit is contained in:
parent
cc6f8eea16
commit
a905de6792
@ -165,12 +165,11 @@ def drop_database(connection, not_used=None):
|
|||||||
def create_database(connection, not_used=None):
|
def create_database(connection, not_used=None):
|
||||||
'''
|
'''
|
||||||
|
|
||||||
This function 'create_database' cannot be used with TarantoolDB connection Class.
|
For tarantool implementation, this function runs
|
||||||
It will be ignored if called. No Errors.
|
create_tables, to initiate spaces, schema and indexes.
|
||||||
|
|
||||||
'''
|
'''
|
||||||
# connection.init_database()
|
create_tables(None, None)
|
||||||
warnings.warn("Function schema.'create_database', ignored. Cannot be used using TarantoolDB")
|
|
||||||
|
|
||||||
|
|
||||||
def run_command_with_output(command):
|
def run_command_with_output(command):
|
||||||
|
|||||||
@ -145,6 +145,7 @@ def _setup_database(_configure_planetmint): # TODO Here is located setup databa
|
|||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def _bdb(_setup_database):
|
def _bdb(_setup_database):
|
||||||
|
print(f"BDB CALL")
|
||||||
from planetmint.backend import Connection
|
from planetmint.backend import Connection
|
||||||
from planetmint.transactions.common.memoize import to_dict, from_dict
|
from planetmint.transactions.common.memoize import to_dict, from_dict
|
||||||
from planetmint.models import Transaction
|
from planetmint.models import Transaction
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user