kip-sql 0.0.1-alpha.8

build the SQL layer of KipDB database
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[macro_export]
macro_rules! impl_from_lua {
    ($ty:ty) => {
        impl<'lua> FromLua<'lua> for $ty {
            fn from_lua(value: LuaValue<'lua>, _: &'lua Lua) -> LuaResult<Self> {
                match value {
                    Value::UserData(ud) => Ok(ud.take::<Self>()?),
                    _ => unreachable!(),
                }
            }
        }
    };
}