get the database server information when doing connection #1322
Unanswered
sahasrara62
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
when i connect with the database server, i want to know the information about it ie it's metadata, like server name, version etc.
with current case, what i can do is
but this is external code i have to write to get information, can't we do this thing nativetly, where when engine is connected we get this information and attached this meta data to engine object or other place.
In django we have this functionality, where using
connection.get_database_version()
we got the information about it. but here we need to go through this way.it might be a good feature to add this information to engine object when a connection happen
Operating System
Linux, Windows, macOS
Operating System Details
No response
SQLModel Version
0.0.24
Python Version
3.11
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions