Module owoof::sql

source · []
Expand description

Stuff to do with SQL query building.

The Query type holds a SQL string and parameter buffer it implements QueryWriter as something you can push sql strings and parameters on to.

Implementations on PushToQuery allowing types to add their particular SQL string representations to a QueryWriter.

Implementations on rusqlite::types::ToSql and rusqlite::types::FromSql are not here but in crate::driver instead.

Structs

Wraps a Query and also implements the QueryWriter trait but prepends lines with some prefix.

A string buffer for a SQL query with a list of a values that should be passed along as query parameters to rusqlite when querying.

Traits

Implemented by things that can write themselves into a QueryWriter.

Allows query string building over Query and IndentedQueryWriter.