Giter VIP home page Giter VIP logo

hyoga-mysql's People

Contributors

dependabot[bot] avatar guyue88 avatar lifetin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hyoga-mysql's Issues

建议增加创建表 和 删除 表的 功能

建议增加,找了很多关于nodejs的查询构造器,感觉你这个写的还挺好,但是我需要用到创建表和删除表的功能,你这里没有。

是否可以考虑一下,新增一些功能呢?比如:创建表,创建表+字段,表重命名,删除表,更改表的字符集 等;还有表中字段的一些常用操作,添加字段,删除字段,字段重命名,更新字段类型 等。。。

我找了一个有的,你可以参考一下: https://github.com/dresende/node-sql-query

希望可以考虑
`
mysql.table('tableName').create();

mysql.table('tableName').field({...}).create();

mysql.table('tableName').delete();
`

当使用update时,有数组值为负整型,出现sql错误

 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.