drizzle-postgres 0.1.9

A type-safe SQL query builder for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use drizzle_core::SQLTable;

use crate::common::PostgresSchemaType;
use crate::values::PostgresValue;

pub trait PostgresTable<'a>: SQLTable<'a, PostgresSchemaType, PostgresValue<'a>> {}

impl<'a, T> PostgresTable<'a> for &T
where
    T: PostgresTable<'a>,
    for<'r> &'r T: SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>,
{
}