mm_sql 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -139,6 +139,10 @@ const filteredParams = sql.filter({ id: 1, name: '张三', password: '123' }, ['
139
139
  // 获取底层数据库适配器
140
140
  const dbAdapter = sql.db();
141
141
  // 可用于直接操作底层数据库接口
142
+ db.table = "user_account";
143
+ const user = await db.get({
144
+ user_id: 1
145
+ });
142
146
  ```
143
147
 
144
148
  ### 4. 配置选项
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_sql",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "一个通用的SQL帮助类,支持通过切换db_type实现对不同数据库的操作,包括MySQL和SQLite等",
5
5
  "main": "index.js",
6
6
  "scripts": {