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):
|
||||
'''
|
||||
|
||||
This function 'create_database' cannot be used with TarantoolDB connection Class.
|
||||
It will be ignored if called. No Errors.
|
||||
For tarantool implementation, this function runs
|
||||
create_tables, to initiate spaces, schema and indexes.
|
||||
|
||||
'''
|
||||
# connection.init_database()
|
||||
warnings.warn("Function schema.'create_database', ignored. Cannot be used using TarantoolDB")
|
||||
create_tables(None, None)
|
||||
|
||||
|
||||
def run_command_with_output(command):
|
||||
|
||||
@ -145,6 +145,7 @@ def _setup_database(_configure_planetmint): # TODO Here is located setup databa
|
||||
|
||||
@pytest.fixture
|
||||
def _bdb(_setup_database):
|
||||
print(f"BDB CALL")
|
||||
from planetmint.backend import Connection
|
||||
from planetmint.transactions.common.memoize import to_dict, from_dict
|
||||
from planetmint.models import Transaction
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user