mirror of
https://github.com/alexgo-io/gaze-indexer.git
synced 2026-01-12 08:34:28 +08:00
* feat: recover nodesale module. * fix: refactored. * fix: fix table type. * fix: add entity * fix: bug UTC time. * ci: try to tidy before testing * ci: touch result file * ci: use echo to create new file * fix: try to skip test in ci * fix: remove os.Exit * fix: handle error * feat: add todo note * fix: Cannot run nodesale test because qtx is not initiated. * fix: 50% chance public key compare incorrectly. * fix: more consistent SQL * fix: sanity refactor. * fix: remove unused code. * fix: move last_block_default to config file. * fix: minor mistakes. * fix: * fix: refactor * fix: refactor * fix: delegate tx hash not record into db. * refactor: prepare for moving integration tests. * refactor: convert to unit tests. * fix: change to using input values since output values deducted fee. * feat: add extra unit test. * fix: wrong timestamp format. * fix: handle block timeout = 0 --------- Co-authored-by: Gaze <gazenw@users.noreply.github.com>
28 lines
893 B
YAML
28 lines
893 B
YAML
# sqlc configuration file
|
|
# https://docs.sqlc.dev/en/stable/reference/config.html
|
|
#
|
|
# run `sqlc generate` to generate Go code from SQL queries and schema definitions.
|
|
#
|
|
# use `golang-migrate` to manage your database schema
|
|
# https://docs.sqlc.dev/en/stable/howto/ddl.html#golang-migrate
|
|
version: "2"
|
|
sql:
|
|
- schema: "./modules/runes/database/postgresql/migrations"
|
|
queries: "./modules/runes/database/postgresql/queries"
|
|
engine: "postgresql"
|
|
gen:
|
|
go:
|
|
package: "gen"
|
|
out: "./modules/runes/repository/postgres/gen"
|
|
sql_package: "pgx/v5"
|
|
rename:
|
|
id: "Id"
|
|
- schema: "./modules/nodesale/database/postgresql/migrations"
|
|
queries: "./modules/nodesale/database/postgresql/queries"
|
|
engine: "postgresql"
|
|
gen:
|
|
go:
|
|
package: "gen"
|
|
out: "./modules/nodesale/repository/postgres/gen"
|
|
sql_package: "pgx/v5"
|