liter 0.0.8

Experimental library for using SQLite with minimal SQL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Re-exports of dependencies used by proc-macros
//!
//! This module is an internal implementation detail, there are absolutely no stability guarantees.
//!
//! The things here are used by the [`#[database]`](crate::database) and [`#[derive(Table)]`](liter_derive::Table) procedural macros.
//! Because the code they generate does not belong to this crate (or [`liter_derive`]), but to the crate they were invoked in, it will not have access to this [`crate`]'s (`liter`) dependencies.
//! So, whatever they use is re-exported here so that it can be accessed under the `liter` namespace.

pub use rusqlite::Result as SqlResult;
pub use construe::construe;

pub fn invalid_variant(msg: String) -> rusqlite::Error {
	rusqlite::Error::FromSqlConversionFailure(
		1,
		rusqlite::types::Type::Text,
		msg.into()
	)
}