use mlua::Lua;
use crate::bindings::LuaModule;
use crate::engine::context::BindingContext;
use crate::substrate::Substrate;
mod command;
mod pool;
pub struct Pg;
impl<S: Substrate> LuaModule<S> for Pg {
fn register(lua: &Lua, dstest: &mlua::Table, ctx: &BindingContext<S>) -> mlua::Result<()> {
let pg_table = lua.create_table()?;
command::register(lua, &pg_table, ctx)?;
dstest.set("pg", pg_table)?;
Ok(())
}
}