pub trait EdgedbComposableQuery {
    type ArgTypes: EdgedbQueryArgs;
    type ReturnType: EdgedbSetValue;

    const ARG_NAMES: &'static [&'static str];

    // Required method
    fn format_query(
        fmt: &mut impl Write,
        args: &HashMap<&str, String>
    ) -> Result<(), Error>;

    // Provided method
    fn query() -> String { ... }
}
Expand description

Derivable trait. Can have parameters. Either an object with named fields, or can be a wrapper around a selector, or Option<selector>, or Vec<selector>, or `NonEmpty``.

Required Associated Types§

Required Associated Constants§

source

const ARG_NAMES: &'static [&'static str]

Required Methods§

source

fn format_query( fmt: &mut impl Write, args: &HashMap<&str, String> ) -> Result<(), Error>

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§