Macro yottadb::make_ckey[][src]

macro_rules! make_ckey {
    ( $ctx:expr, $var:expr $(,)?) => { ... };
    ( $ctx:expr, $gbl:expr $(, $x:expr)+ ) => { ... };
}

Create a KeyContext with the given subscripts, provided a context.

Examples

use std::error::Error;
use yottadb::Context;

fn main() -> Result<(), Box<Error>> {
    let mut ctx = Context::new();
    let mut key = yottadb::make_ckey!(ctx, "^hello", "world");
    key.data()?;

    Ok(())
}