15 Star 80 Fork 12

AvenirTech 未来科技 / AvenirSQL

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
lib.js 630 Bytes
一键复制 编辑 原始数据 按行查看 历史
吉法师 提交于 2021-03-11 16:22 . 调通判断列长度和类型的接口
const AvenirSQL = require('./AvenirSQL/index');
async function main() {
let initJson = {
ip: '127.0.0.1',
port: 44944,
user: 'myweb',
password: '123456',
database: '11',
}
AvenirSQL.init(initJson);
let conn = await AvenirSQL.connect();
console.log(conn);
// console.log(conn.data);
// let sql = `select * from t where e = '84563'`;
// console.log("查询sql为 ",sql);
// let res = await AvenirSQL.dbop(sql);
// console.log("数据库sql操作返回值为 ",res);
let t = await AvenirSQL.beginTrans(conn.sign);
console.log(t)
}
main();
NodeJS
1
https://gitee.com/onlyyyy/AvenirSQL.git
git@gitee.com:onlyyyy/AvenirSQL.git
onlyyyy
AvenirSQL
AvenirSQL
master

搜索帮助