1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-08-06 18:21:49 +00:00

38 Commits

Author SHA1 Message Date
0b106d8ef5 db/sqlite: use ParseDuration 2023-03-14 20:56:11 +08:00
40e4f40525 db/sqlite: change ttl to millisecond 2023-03-14 20:53:17 +08:00
20c62111f5 all: run gofmt -w -r 'interface{} -> any' 2023-01-26 23:03:08 +08:00
8f63750d7f fix: sqlite 2022-12-02 18:53:50 +08:00
92d78839f1 fix: interface convert panic 2022-11-10 17:30:54 +08:00
a6613d88bf fix: uin extract 2022-11-10 16:31:14 +08:00
1de1deb059 fix foreign key constraints 2022-11-10 15:00:15 +08:00
8da043f012 feat: add foreign key constraints 2022-11-10 14:42:31 +08:00
f1957e3814 feat: 将 uin, tiny 分表以节省空间 2022-11-10 11:51:01 +08:00
bc80944f26 fix: possible sql inject 2022-11-09 21:11:23 +08:00
fc51a69ff1 fix: possible sql inject 2022-11-09 21:10:20 +08:00
cee4bccf45 fix: no impl on winarm 2022-11-09 20:58:53 +08:00
e6fa400e05 fix: no impl on winarm 2022-11-09 20:53:59 +08:00
3d3d19c593 fix: dbpath 2022-11-09 20:32:17 +08:00
fdfae87e97 fix: create table 2022-11-09 20:06:07 +08:00
5c78174d1c fix: possible id == 0 2022-11-09 16:51:12 +08:00
c84d583235 feat: add sqlite3 database support 2022-11-09 16:38:33 +08:00
18a091145a style: go fmt ./...
also delete mkrw.go, we can maintain this file by hand.
2022-04-14 21:53:00 +08:00
d522378315 all: optimize
detected by go-perfguard
2022-03-27 23:01:47 +08:00
76295b0e89 dep: update MiraiGo 2022-03-17 16:59:47 +08:00
d7fe481a8b db,server: release config after init 2022-03-13 15:23:14 +08:00
8326685088 coolq: only truncate replySeq to uint16 on private message 2022-02-18 15:09:57 +08:00
2a66896d43 coolq: new package cqcode
move cqcode escape&unescape to new package
2022-02-16 01:14:35 +08:00
9054d4cee8 db/leveldb: impl index read/write drop encoding/gob (#1370)
Two benefit below:
 * shrink go-cqhttp binary size about 200KiB
 * shrink database file from 2.8M to 1.56M compared with v2 database

Also provide a tool to migrate v2 database:
https://github.com/RomiChan/gocq-leveldb-migrate
2022-02-15 22:24:27 +08:00
baecc2f8e6 dep: update MiraiGo
For #1368
2022-02-12 16:18:54 +08:00
b70db344a6 .github: update golint.yml 2022-02-08 21:53:43 +08:00
57d1be0ee5 db/leveldb: register message.RedBagMessageType
Fixes #1323
2022-02-06 18:39:22 +08:00
8da29c292e feat: get_guild_msg api no_cache 2021-12-14 17:50:36 +08:00
32aa82f914 feat: get_guild_msg api 2021-12-13 02:34:05 +08:00
57b2ce4c04 feat: database support for guild channel message 2021-12-11 23:16:00 +08:00
d8445c2d8d fix typo 2021-11-20 22:52:23 +08:00
c499389e66 refactor(cqcode): simply cache arg handle 2021-10-19 22:14:36 +08:00
5e70c8115e feat: modular database
build with leveldb on default
2021-10-17 17:12:24 +08:00
f767213681 feat: init disk-based btree impl 2021-09-27 22:44:45 +08:00
c2166699e4 feat: multi database support - mongodb. 2021-09-26 19:11:07 +08:00
f629eee7f2 fix typo. 2021-09-22 16:48:59 +08:00
a56e70d07c feat: multi database support - multi db wrapper. 2021-09-22 16:43:27 +08:00
66266f0d5e feat: multi database support - leveldb. 2021-09-22 14:43:48 +08:00