drizzle_postgres/traits/table.rs
1use drizzle_core::SQLTable;
2
3use crate::common::PostgresSchemaType;
4use crate::values::PostgresValue;
5
6/// A `PostgreSQL` table. Implemented by `#[PostgresTable]`.
7pub trait PostgresTable<'a>: SQLTable<'a, PostgresSchemaType, PostgresValue<'a>> {}
8
9impl<'a, T> PostgresTable<'a> for &T
10where
11 T: PostgresTable<'a>,
12 for<'r> &'r T: SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>,
13{
14}