guyue88 / hyoga-mysql Goto Github PK
View Code? Open in Web Editor NEW一个MYSQL数据库的常用操作封装,操作方式类似THINKPHP的数据库操作
License: MIT License
一个MYSQL数据库的常用操作封装,操作方式类似THINKPHP的数据库操作
License: MIT License
PS:直接在Navicat里执行INSERT INTO是可以插入的。
东西不错,如果能加上表前缀就更好了。
建议增加,找了很多关于nodejs的查询构造器,感觉你这个写的还挺好,但是我需要用到创建表和删除表的功能,你这里没有。
是否可以考虑一下,新增一些功能呢?比如:创建表,创建表+字段,表重命名,删除表,更改表的字符集 等;还有表中字段的一些常用操作,添加字段,删除字段,字段重命名,更新字段类型 等。。。
我找了一个有的,你可以参考一下: https://github.com/dresende/node-sql-query
希望可以考虑
`
mysql.table('tableName').create();
mysql.table('tableName').field({...}).create();
mysql.table('tableName').delete();
`
现在的add中的防重有点不适合.
希望曾加个replace into的方法
await mysql.table('net').update({
test: -100,
}, { clientId: client.id });
result:
UPDATE net SET `net`.`test` = `net`.`test`-100 WHERE (`net`.`clientId` = '123456')
期望的结果:
UPDATE net SET `net`.`test` = -100 WHERE (`net`.`clientId` = '123456')
不确定add会不会也这样,之前好像都是正常的,最近的数据有问题,我测试了下发现的
version: 1.1.7 and 1.1.6
TypeError: mysql is not a constructor
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.