Go to file
sjcsjc123 b6ace815d2 v1
2023-07-21 11:33:36 +08:00
cmd/luwak v1 2023-07-21 11:33:36 +08:00
handler v1 2023-07-21 11:33:36 +08:00
model v1 2023-07-21 11:33:36 +08:00
test v1 2023-07-21 11:33:36 +08:00
go.mod v1 2023-07-21 11:33:36 +08:00
go.sum v1 2023-07-21 11:33:36 +08:00
README.md v1 2023-07-21 11:33:36 +08:00

luwak

思路:

用户创建一张表后将表名以及所有字段都上传到redis里在api—gateway去获取表的信息

luwak负责注册一系列http接口

SELECT/{table}/select/{field1}=value1?{field2}=value2 UPDATE/{table}/update/{field1}=value1?{field2}=value2 DELETE/{table}/delete/{field1}=value1?{field2}=value2 INSERT/{table}/insert/{field1}=value1?{field2}=value2

FAQ: 如何获取用户的MYSQL连接信息