Skip to main content

Crate rsql_driver

Crate rsql_driver 

Source
Expand description

§RSQL Driver

The RSQL driver library provides interfaces for connecting to different data sources and executing SQL queries.

Structs§

CachedMetadataConnection
Catalog
Catalogs contains the schemas in a data source.
Column
Column contains the definition for a column in a table.
DriverManager
Manages available drivers
ForeignKey
ForeignKey contains the definition for a foreign key constraint on a table.
Index
Index contains the definition for an index on a table.
LimitQueryResult
Query result with a limit
MemoryQueryResult
In-memory query result
Metadata
Metadata contains the catalog, schema, table, column, index, primary key, and foreign key definitions for a data source.
MockConnection
A mock implementation of Connection for testing.
MockDriver
The Driver trait defines the interface for connecting to different data sources and executing SQL queries.
PrimaryKey
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§

Error
StatementMetadata
Value

Traits§

Connection
Connection to a database
Driver
The Driver trait defines the interface for connecting to different data sources and executing SQL queries.
QueryResult
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 ToSql references into a Vec<Value> for use with Connection::execute and Connection::query.

Type Aliases§

Result
Row
A single row of a query result