1 Star 0 Fork 0

dpwgc/sqlmidway

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config.yaml 930 Bytes
一键复制 编辑 原始数据 按行查看 历史
dpwgc 提交于 2024-06-07 15:28 +08:00 . view
server:
addr: 0.0.0.0
port: 8899
# https
tls: false
cert-file: cert.pem
key-file: private.key
# console print
debug: true
log:
path: ./logs
size: 1
age: 7
backups: 1000
dbs:
- name: testDB
type: mysql
dsn: root:123456@tcp(127.0.0.1:3306)/test_db?charset=utf8mb4&parseTime=True&loc=Local
groups:
- name: testGroup
format: lowerCamel
apis:
# API /query/testDB/testGroup/listByIdOrName
- name: listByIdOrName
sql: select * from test where 0=0 {#name} and name like {name} {/name} {#id} and id = {id} {/id} {#size} limit {size} {/size}
# API /query/testDB/testGroup/listByIds
- name: listByIds
sql: select * from test where id in {ids}
# API /command/testDB/testGroup/editNameById
- name: editNameById
sql: update test set name = {name} where id = {id} limit 1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dpwgc/sqlmidway.git
git@gitee.com:dpwgc/sqlmidway.git
dpwgc
sqlmidway
sqlmidway
master

搜索帮助