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
drivermessagesMessages generated during the connection.
paramstyleRead-only DB-API parameter style
showAccess server properties managed by the SHOW statement.
Get vectorstore API accessor
encodingSession encoding
globalsAttribute-like access to global server variables
localsAttribute-like access to local / session server variables
cluster_globalsAttribute-like access to cluster global server variables
cluster_localsAttribute-like access to cluster local / session server variables
varsAttribute-like access to all server variables
cluster_varsAttribute-like access to all cluster server variables