# auto-weapp **Repository Path**: chenchenpp/auto-weapp ## Basic Information - **Project Name**: auto-weapp - **Description**: 自动部署小程序 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-30 - **Last Updated**: 2022-01-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 技术栈 * NodeJS v10 * express * typescript * cookie-parser: cookie格式化 * crypto: 加密 * mysql v5.7 * express-validator: 校验中间件 * jwt: JSON Web Token插件 ( https://www.ruanyifeng.com/blog/2018/07/json_web_token-tutorial.html ) * nodemon:热更新 * @hapi/boom、http-errors: 响应错误状态处理 4xx 5xx * morgan: 日志中间件 * pm2 # 技术方案 * 数据库连接池 # mysql操作 `1.查询语句` SELECT * FROM tabelName; `2.修改语句` >修改task表的id属性变成自增 `alter table` mp_release_platform.task `modify` __id__ `integer` __auto_increment__; `3.插入语句` >task表插入一条数据,注意:具有关键字的属性名需要使用``字符括起来,如desc `INSERT INTO` mp_release_platform.task __(userId, type, version, branch, \`desc\`, status, createTime, updateTime, errorMessage, journal, qrCodeUrl)__ `VALUES` ('22223', '2', '2','2','第2行','发包','2020-09-09', '2020-09-09','我错了', '13', 'fdfsadsaf'); `4.更新语句` >将task表中属性id大于2的数据项的type更新成1 `update` mp_release_platform.task `set` __type=1__ `where` id > 2 `5.分页语句` >分页查询 第一页数据,数据条数为5条 `select` * `from` task where type='${miniprogramType}' __`limit` 1, 5__