## 擴展包支持的鏈式操作方法如下表
擴展包提供的鏈式操作方法,可以有效的提高數據存取的代碼清晰度和開發效率,并且支持所有的CURD操作
| 操作方法 | 作用 | 支持的參數類型 |
| --- | --- | --- |
| distinct | 指定DISTINCT查詢 | 布爾值 |
| field | 指定查詢字段 | 字符串、列表 |
| withoutField | 指定排除的查詢字段 | 字符串、列表 |
| name | 指定數據表名 | 字符串 |
| alias | 指定數據表別名 | 字符串 |
| force | 指定強制索引 | 字符串 |
| join\* | 指定INNER JOIN查詢 | 字符串 |
| leftJoin\* | 指定LEFT JOIN查詢 | 字符串 |
| rightJoin\* | 指定RIGHT JOIN查詢 | 字符串 |
| union\* | 指定UNION查詢 | 字符串 |
| unionAll\* | 指定UNION ALL查詢 | 字符串 |
| where\* | 指定AND查詢條件 | 字符串、列表、字典 |
| whereOr\* | 指定OR查詢條件 | 字符串、列表、字典 |
| whereTime | 指定查詢日期或時間 | 字符串、數字 |
| whereBetweenTime | 指定查詢日期或時間在范圍內 | 字符串、數字 |
| whereNotBetweenTime | 指定查詢日期或時間不在范圍內 | 字符串、數字 |
| whereBetweenTimeField | 指定查詢當前時間在兩個時間字段范圍內 | 字符串 |
| whereNotBetweenTimeField | 指定查詢當前時間不在兩個時間字段范圍內 | 字符串 |
| whereYear | 指定查詢年數據 | 字符串、數字 |
| whereMonth | 指定查詢月數據 | 字符串、數字 |
| whereWeek | 指定查詢周數據 | 字符串、數字 |
| whereDay | 指定查詢天數據 | 字符串、數字 |
| group | 指定group查詢 | 字符串 |
| order | 指定排序規則 | 字符串 |
| orderRand | 指定隨機排序 | 無 |
| limit | 指定查詢條數 | 數字 |
| page | 指定分頁 | 數字 |
| lock | 指定LOCK鎖定 | 布爾值 |
| comment | 指定查詢注釋 | 字符串 |
| ignore| 指定是否忽略已存在的數據 | 布爾值 |
| inc| 指定字段自增更新 | 字符串、數字 |
| dec| 指定字段自減更新 | 字符串、數字 |
>[danger] 帶 * 標識的表示支持多次調用
- 連接數據庫
- 鏈式操作方法
- distinct
- field
- withoutField
- name
- alias
- force
- join
- leftJoin
- rightJoin
- union
- unionAll
- where
- whereOr
- whereTime
- whereBetweenTime
- whereNotBetweenTime
- whereBetweenTimeField
- whereNotBetweenTimeField
- whereYear
- whereMonth
- whereWeek
- whereDay
- group
- having
- order
- orderRand
- limit
- page
- lock
- comment
- ignore
- inc
- dec
- fetchSql
- 查詢數據
- 聚合查詢
- 新增數據
- 更新數據
- 刪除數據
- 原生操作