From: qydysky Date: Wed, 1 May 2024 15:18:47 +0000 (+0000) Subject: Improve type X-Git-Tag: v0.13.8~2 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=126538120f90e63cb9c5ae3bf285094f73cc6fa8;p=bili_danmu%2F.git Improve type --- diff --git a/CV/Var.go b/CV/Var.go index 9efa979..d031217 100644 --- a/CV/Var.go +++ b/CV/Var.go @@ -470,7 +470,6 @@ func (t *Common) Init() *Common { panic("保存日志至db打开连接错误 " + e.Error()) } if createok { - fmt.Println(11) tx := psql.BeginTx[any](db, pctx.GenTOCtx(time.Second*5)) tx.Do(psql.SqlFunc[any]{ Query: create, diff --git a/README.md b/README.md index 5dd6e70..c808b43 100644 --- a/README.md +++ b/README.md @@ -197,7 +197,7 @@ postgreSql: ```json { "保存弹幕至db": { - "dbname": "pgx", + "dbname": "postgres", "url":"postgres://postgres:qydysky@192.168.31.103:5432/postgres?sslmode=disable", "字段help":"time.Now().Format(time.DateTime), time.Now().Unix(), item.msg, item.color, item.auth, item.uid, item.roomid", "create":"create table danmu (created varchar(20), createdunix varchar(20), msg varchar(100), color varchar(20), auth varchar(50), uid varchar(30), roomid varchar(30))", @@ -464,14 +464,14 @@ ass编码GB18030支持中文 "生成pgo":"default.pgo", "扫码登录":true, "保存弹幕至db": { - "dbname": "pgx", + "dbname": "postgres", "url":"postgres://postgres:qydysky@192.168.31.103:5432/postgres?sslmode=disable", "字段help":"time.Now().Format(time.DateTime), time.Now().Unix(), item.msg, item.color, item.auth, item.uid, item.roomid", "create":"create table danmu (created varchar(20), createdunix varchar(20), msg varchar(100), color varchar(20), auth varchar(50), uid varchar(30), roomid varchar(30))", "insert":"insert into danmu (created, createdunix, msg, color, auth, uid, roomid) values ({Date},{Unix},{Msg},{Color},{Auth},{Uid},{Roomid})" }, "保存日志至db":{ - "dbname": "pgx", + "dbname": "postgres", "url":"postgres://postgres:qydysky@192.168.31.103:5432/postgres?sslmode=disable", "字段help":"$1:Prefix $2:Base $3:Msgs, use ? or $%d not placeholder", "create":"create table log (created timestamp, Prefix varchar(10), Base varchar(30), Msgs varchar(500))",