mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-11-24 21:29:00 +08:00
* 文档:补充会话上报一期后端方案 * 文档:补充会话上报管理后台方案 * 功能:实现会话上报一期后端与管理页面 * 功能:开放管理员审计清除并限制占位会话 * 功能:会话上报开关生效并增加数据库限速
42 lines
854 B
YAML
42 lines
854 B
YAML
version: '2'
|
|
sql:
|
|
- engine: postgresql
|
|
schema: ../../schema/schema.sql
|
|
queries: query.sql
|
|
gen:
|
|
go:
|
|
package: sqlc
|
|
out: sqlc
|
|
sql_package: pgx/v5
|
|
emit_pointers_for_null_types: true
|
|
emit_empty_slices: true
|
|
omit_unused_structs: true
|
|
query_parameter_limit: 1
|
|
overrides:
|
|
go:
|
|
overrides:
|
|
- db_type: uuid
|
|
go_type: string
|
|
- db_type: uuid
|
|
nullable: true
|
|
go_type:
|
|
type: string
|
|
pointer: true
|
|
- db_type: pg_catalog.numeric
|
|
go_type: string
|
|
- db_type: pg_catalog.numeric
|
|
nullable: true
|
|
go_type:
|
|
type: string
|
|
pointer: true
|
|
- db_type: timestamptz
|
|
go_type:
|
|
import: time
|
|
type: Time
|
|
- db_type: timestamptz
|
|
nullable: true
|
|
go_type:
|
|
import: time
|
|
type: Time
|
|
pointer: true
|