Sequelize库为Node.js提供了一个完全用JavaScript编写的ORM(Object-Relational-Mapper)。为MySQL,MariaDB,SQLite,PostgreSQL和SQL Server提供简单的映射。
我需要将原始查询更改的序列化为sequelize ORM这是我的查询db.sequelize.query(“SELECT count(*)as count FROM cubbersclosure WHERE CAST('”from + date +“'as date)<= toDate AND CAST(' “+ ...