scyllax 0.2.1

A SQLx and Discord inspired query system for Scylla
Documentation
1
2
3
4
5
6
7
8
9
10
use scylla::{frame::value::ValueList, FromRow};

/// The traits of the entity
pub trait EntityExt<T: ValueList + FromRow> {
    /// Returns the keys of the entity as a vector of strings, keeping the order of the keys.
    fn keys() -> Vec<String>;

    /// Returns the primary keys
    fn pks() -> Vec<String>;
}