71 lines
2.0 KiB
YAML
71 lines
2.0 KiB
YAML
version: "2"
|
|
sql:
|
|
- engine: "sqlite"
|
|
schema: "internal/manager/persistence/sqlc/schema.sql"
|
|
queries: "internal/manager/persistence/sqlc/query_jobs.sql"
|
|
gen:
|
|
go:
|
|
out: "internal/manager/persistence/sqlc"
|
|
overrides:
|
|
- db_type: "jsonb"
|
|
go_type:
|
|
import: "encoding/json"
|
|
type: "RawMessage"
|
|
rename:
|
|
uuid: "UUID"
|
|
uuids: "UUIDs"
|
|
jobuuid: "JobUUID"
|
|
taskUUID: "TaskUUID"
|
|
workeruuid: "WorkerUUID"
|
|
- engine: "sqlite"
|
|
schema: "internal/manager/persistence/sqlc/schema.sql"
|
|
queries: "internal/manager/persistence/sqlc/query_workers.sql"
|
|
gen:
|
|
go:
|
|
out: "internal/manager/persistence/sqlc"
|
|
overrides:
|
|
- db_type: "jsonb"
|
|
go_type:
|
|
import: "encoding/json"
|
|
type: "RawMessage"
|
|
rename:
|
|
uuid: "UUID"
|
|
uuids: "UUIDs"
|
|
jobuuid: "JobUUID"
|
|
taskUUID: "TaskUUID"
|
|
workeruuid: "WorkerUUID"
|
|
- engine: "sqlite"
|
|
schema: "internal/manager/persistence/sqlc/schema.sql"
|
|
queries: "internal/manager/persistence/sqlc/query_task_scheduler.sql"
|
|
gen:
|
|
go:
|
|
out: "internal/manager/persistence/sqlc"
|
|
overrides:
|
|
- db_type: "jsonb"
|
|
go_type:
|
|
import: "encoding/json"
|
|
type: "RawMessage"
|
|
rename:
|
|
uuid: "UUID"
|
|
uuids: "UUIDs"
|
|
jobuuid: "JobUUID"
|
|
taskUUID: "TaskUUID"
|
|
workeruuid: "WorkerUUID"
|
|
- engine: "sqlite"
|
|
schema: "internal/worker/persistence/sqlc/schema.sql"
|
|
queries: "internal/worker/persistence/sqlc/query.sql"
|
|
gen:
|
|
go:
|
|
out: "internal/worker/persistence/sqlc"
|
|
overrides:
|
|
- db_type: "jsonb"
|
|
go_type:
|
|
import: "encoding/json"
|
|
type: "RawMessage"
|
|
rename:
|
|
uuid: "UUID"
|
|
uuids: "UUIDs"
|
|
jobuuid: "JobUUID"
|
|
taskUUID: "TaskUUID"
|
|
workeruuid: "WorkerUUID"
|