A handy node module to get your SQL statements out of your code and into .sql files
数据库相关工具
Simple sql file loader for nodejs
A minimalistic promise-based SQL loader for Node.js
sqlloader inspects a directory hierarchy: for each subdirectory, sqlloader offers to execute any SQL file, using the database specified in the JSON configuration.
SqlLoader allows you to keep your plain SQL queries as files instead of mixing them in your ActiveRecord models.