Bases: object
Close the connection now
Transactions are not supported, so commit is not implemented.
Return a new Cursor Object using the connection.
crate cli
can be used to query crate using SQL
Bases: cmd.Cmd
connect to one or more server with “connect servername:port”
execute a SQL delete statement
exit the shell
execute a SQL insert statement
exit the shell
execute a SQL select statement
Bases: object
Close the cursor now
This read-only attribute is a sequence of 7-item sequences.
Prepare and execute a database operation (query or command).
Prepare a database operation (query or command) and then execute it against all parameter sequences or mappings found in the sequence seq_of_parameters.
Fetch all (remaining) rows of a query result, returning them as a sequence of sequences (e.g. a list of tuples). Note that the cursor’s arraysize attribute can affect the performance of this operation.
Fetch the next set of rows of a query result, returning a sequence of sequences (e.g. a list of tuples). An empty sequence is returned when no more rows are available.
Fetch the next row of a query result set, returning a single sequence, or None when no more data is available. Alias for next().
Fetch the next row of a query result set, returning a single sequence, or None when no more data is available.
This read-only attribute specifies the number of rows that the last .execute*() produced (for DQL statements like SELECT) or affected (for DML statements like UPDATE or INSERT).
Not supported method.
Not supported method.
Bases: exceptions.Exception
Crate HTTP API Exception
Bases: exceptions.Exception
Base class for exceptions in this module.
Bases: object
Crate connection client using crate’s HTTP API.
Default server to use if no servers are given on instantiation.
Retry interval for failed servers in seconds.
Execute SQL stmt against the crate server.
Crate URI path for issuing SQL statements.
Bases: json.decoder.JSONDecoder
JSON decoder which is trying to convert datetime strings to datetime objects
taken from: https://gist.github.com/abhinav-upadhyay/5300137