MRchenkuan / nobatis

mybatis 风格的 mysql 查询工具

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mybatis 风格的 mysql 查询工具

使用方式

const DAO = require('@xsyx/nobatis');
const path = require('path');

const modelPath = path.resolve(__dirname,'./model');
const dbConfig = {
    "host": "rds.aliyuncs.com",
    "port": "3306",
    "username": "123456",
    "password": "123456",
    "db": "default_db"
};

const dao1 = new DAO(modelPath, dbConfig);
dao1.test = function(){};
console.log(dao1.test())

About

mybatis 风格的 mysql 查询工具


Languages

Language:JavaScript 100.0%