Crates.io | toursql |
lib.rs | toursql |
version | 0.1.1 |
source | src |
created_at | 2023-05-15 07:53:26.545419 |
updated_at | 2023-05-15 09:09:14.083429 |
description | a derive macro for gluesql |
homepage | |
repository | https://github.com/enginefuture/Toursql |
max_upload_size | |
id | 864785 |
size | 49,351 |
use gluesql::prelude::{ Payload};
pub trait Selectable<T>: Sized {
fn select(&self) -> String;
fn delete(&self) -> String;
fn update(&self, updates: ::std::collections::HashMap<String, String>) -> Result<String, String>;
fn from_payload(payload: &Payload) -> T;
fn union_str(&self) -> std::collections::HashMap<String, Vec<String>>;
}