Expand description
§RSQL Driver
The RSQL driver library provides interfaces for connecting to different data sources and executing SQL queries.
Structs§
- Cached
Metadata Connection - Catalog
- Catalogs contains the schemas in a data source.
- Column
- Column contains the definition for a column in a table.
- Driver
Manager - Manages available drivers
- Foreign
Key - ForeignKey contains the definition for a foreign key constraint on a table.
- Index
- Index contains the definition for an index on a table.
- Limit
Query Result - Query result with a limit
- Memory
Query Result - In-memory query result
- Metadata
- Metadata contains the catalog, schema, table, column, index, primary key, and foreign key definitions for a data source.
- Mock
Connection - A mock implementation of
Connectionfor testing. - Mock
Driver - The
Drivertrait defines the interface for connecting to different data sources and executing SQL queries. - Primary
Key - PrimaryKey contains the definition for a primary key constraint on a table.
- Schema
- Schema contains the table, column, index, primary key, and foreign key definitions for a schema in a data source.
- Table
- Table contains the column, index, primary key, and foreign key definitions for a table in a schema.
Enums§
Traits§
- Connection
- Connection to a database
- Driver
- The
Drivertrait defines the interface for connecting to different data sources and executing SQL queries. - Query
Result - Results from a query
- ToSql
- Trait for types that can be converted to a SQL parameter value.
- UrlExtension
Functions§
- convert_
to_ at_ placeholders - Convert
?placeholders to numbered@P1, @P2, ...placeholders. Used by SQL Server (tiberius) drivers. - convert_
to_ numbered_ placeholders - Convert
?placeholders to numbered$1, $2, ...placeholders. Used by PostgreSQL-family drivers. - to_
values - Convert a slice of
ToSqlreferences into aVec<Value>for use withConnection::executeandConnection::query.