ispyb.open imports:
|
from ispyb.connector.mysqlsp.main import ISPyBMySQLSPConnector as Connector |
This imports ispyb.interface.connection:
|
import ispyb.interface.connection |
and this imports ispyb.model:
|
import ispyb.model.interface |
Thus, you cannot use ispyb.open without getting the warning:
|
warnings.warn( |
|
"ispyb.model has been deprecated and will be removed in a future version. " |
|
"You can use the SQLAlchemy models in ispyb.sqlalchemy instead", |
|
DeprecationWarning, |
|
stacklevel=2, |
|
) |
Are all non-sqlalchemy connection deprecated, or just ispyb.model? (AFAIK the sqlalchemy credentials don't have stored procedure access or insertion/update permissions, to get the same results - the credentials I am aware of can only see the update_session_archived procedure)
ispyb.openimports:ispyb-api/src/ispyb/__init__.py
Line 51 in 8c952b5
This imports
ispyb.interface.connection:ispyb-api/src/ispyb/connector/mysqlsp/main.py
Line 12 in 8c952b5
and this imports
ispyb.model:ispyb-api/src/ispyb/interface/connection.py
Line 4 in 8c952b5
Thus, you cannot use
ispyb.openwithout getting the warning:ispyb-api/src/ispyb/model/__init__.py
Lines 3 to 8 in 8c952b5
Are all non-sqlalchemy connection deprecated, or just
ispyb.model? (AFAIK the sqlalchemy credentials don't have stored procedure access or insertion/update permissions, to get the same results - the credentials I am aware of can only see theupdate_session_archivedprocedure)