mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 22:45:44 +00:00
'create_database' function from schema file, is ignored using TarantoolDB Class.
This commit is contained in:
parent
fbeff09471
commit
b16c8a99fb
@ -1,3 +1,5 @@
|
|||||||
|
import warnings
|
||||||
|
|
||||||
import tarantool
|
import tarantool
|
||||||
from planetmint.backend.utils import module_dispatch_registrar
|
from planetmint.backend.utils import module_dispatch_registrar
|
||||||
from planetmint import backend
|
from planetmint import backend
|
||||||
@ -134,7 +136,14 @@ def drop_database(connection, not_used=None):
|
|||||||
|
|
||||||
@register_schema(TarantoolDB)
|
@register_schema(TarantoolDB)
|
||||||
def create_database(connection, not_used=None):
|
def create_database(connection, not_used=None):
|
||||||
connection.init_database()
|
'''
|
||||||
|
|
||||||
|
This function 'create_database' cannot be used with TarantoolDB connection Class.
|
||||||
|
It will be ignored if called. No Errors.
|
||||||
|
|
||||||
|
'''
|
||||||
|
# connection.init_database()
|
||||||
|
raise warnings.warn("Function schema.'create_database', ignored. Cannot be used using TarantoolDB")
|
||||||
|
|
||||||
|
|
||||||
def run_command_with_output(command):
|
def run_command_with_output(command):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user