Expand description
Access to the SQLite database embedded in .clip files (and .cmc / .sut, which are plain SQLite files).
CSP creates tables and columns only when a file first needs them, so readers look columns up by name and treat missing ones as absent.
Structs§
- Row
- One row read with
SELECT *, columns in table order.
Enums§
- SqlValue
- Owning dynamic type value. Value’s type is typically dictated by SQLite (not by the caller).
Functions§
- columns
- Column (name, declared type) pairs of a table, in order.
- has_
column - Whether
tablehas a column namedcolumn. - has_
table - Same as
table_exists. - open_
bytes - Open a database image as an in-memory connection (changes stay in memory).
- quote
- Quote an identifier for SQL.
- select
- Run a query and return its rows with column names.
- select_
all - Every row of a table (empty when the table does not exist).
- serialize
- The database image of
connection(what goes into CHNKSQLi). - table_
exists - Whether the database has a table with this name.
- tables
- Names of all tables, in creation order.
- value_
as_ text - Read an id column that CSP stores either as TEXT or as BLOB.