DatabaseRemote¶
- class dsviper.DatabaseRemote¶
Bases:
objectAccesses a CRUD like database on a remote repository, through the Databasing interface.
Note: Not directly instantiable.
- close() None¶
Close the database.
- static connect(database: str, host: str, service: str = '54322') DatabaseRemote¶
Return the database named database, served by host on service.
- static connect_local(database: str, socket_path: str) DatabaseRemote¶
Connect to socket_path and use the database.
- static databases(host: str, service: str = '54322') list[str]¶
Return the names of the databases host serves on service.
- static databases_local(socket_path: str) list[str]¶
Return the names of the databases served on the unix socket socket_path.
- databasing() Databasing¶
Return the Databasing interface.
- is_closed() bool¶
Return True if the database is closed.