next-sql
Version:
Next-gen SQL connector, easy way to query SQL and create relationship linked object.
14 lines (13 loc) • 434 B
TypeScript
export = transaction;
/** @typedef {import('./')} xsql */
/** @typedef {import('mysql').MysqlError} MysqlError */
/**
* @param {xsql} xsql
* @param {hostId} hostId
*/
declare function transaction(xsql: xsql, hostId: any): (callback: (t: () => import("./")) => Promise<any>) => Promise<void>;
declare namespace transaction {
export { xsql, MysqlError };
}
type xsql = import('./');
type MysqlError = import('mysql').MysqlError;