3 Star 0 Fork 1

Gitee 极速下载/GoAlert

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/target/goalert
克隆/下载
sqlc.yaml 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
version: '2'
sql:
- schema:
- swo/swoinfo/pgtables.sql
- swo/swosync/changelog.sql
- migrate/migrations/20180816094955-switchover-state.sql
- migrate/migrations/20220808103727-switchover-mk2.sql
queries:
- swo/*/queries.sql
- swo/queries.sql
engine: postgresql
gen:
go:
out: swo/swodb
sql_package: pgx/v5
- schema:
- migrate/schema.sql
- swo/swoinfo/pgtables.sql
- swo/swosync/changelog.sql
queries:
- '*/queries.sql'
- '*/*/queries.sql'
engine: postgresql
gen:
go:
out: gadb
sql_package: database/sql
overrides:
- db_type: pg_catalog.interval
go_type:
import: github.com/target/goalert/util/sqlutil
type: Interval
- db_type: interval
go_type:
import: github.com/target/goalert/util/sqlutil
type: Interval
- column: public.schedule_rules.start_time
go_type:
import: github.com/target/goalert/util/timeutil
type: Clock
- column: public.schedule_rules.end_time
go_type:
import: github.com/target/goalert/util/timeutil
type: Clock
- column: public.outgoing_messages.provider_msg_id
go_type:
type: ProviderMessageID
- column: public.user_contact_methods.dest
go_type:
# Note: We can't use the nullable/non-nullable types here because
# sqlc doesn't support it for column overrides yet.
#
# Since it's common to have NULL (i.e., when scanning contact methods and notificaiton channels at once) we use the nullable type.
type: NullDestV1
- column: public.notification_channels.dest
go_type:
type: NullDestV1
- column: public.uik_config.config
go_type:
type: UIKConfig
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/GoAlert.git
git@gitee.com:mirrors/GoAlert.git
mirrors
GoAlert
GoAlert
master

搜索帮助