singlestoredb.connection.Connection¶
- class singlestoredb.connection.Connection(**kwargs: Any)¶
SingleStoreDB connection.
Instances of this object are typically created through the
singlestoredb.connect()
function rather than creating them directly. See thesinglestoredb.connect()
function for parameter definitions.See also
- __init__(**kwargs: Any)¶
Call
singlestoredb.connect()
instead.
Methods
__init__
(**kwargs)Call
singlestoredb.connect()
instead.autocommit
([value])Set autocommit mode.
close
()Close the database connection.
commit
()Commit the pending transaction.
connect
()Connect to the server.
cursor
()Create a new cursor object.
Disable the data API.
disable_http_api
()Disable the data API.
enable_data_api
([port])Enable the data API in the server.
enable_http_api
([port])Enable the data API in the server.
Determine if the database is still connected.
rollback
()Rollback the pending transaction.
Attributes
driver
messages
Messages generated during the connection.
paramstyle
Read-only DB-API parameter style
show
Access server properties managed by the SHOW statement.
encoding
Session encoding
globals
Attribute-like access to global server variables
locals
Attribute-like access to local / session server variables
cluster_globals
Attribute-like access to cluster global server variables
cluster_locals
Attribute-like access to cluster local / session server variables
vars
Attribute-like access to all server variables
cluster_vars
Attribute-like access to all cluster server variables