lnd/scripts
positiveblue 43a9e2f1ca
multi: add sqlc support
sqlc is a tool that generates fully type-safe idiomatic code from SQL.
The result is Go code can then used execute the queries in the database.

The noraml flow looks like:
- The developer write some sql that will update the schema in the
  database: new tables, indices, etc
- The developer updates the set of queries that will use the new schema.
- `sqlc` generates type-safe interfaces to those queries.
- The developer can then write application code that calls the methods
  generated by sqlc.

The tool configuration needs to live in the repo's root and its name is
`sqlc.yaml`.

LND will support out of the box sqlite and postgres. The sql code needs to
be (almost) the same for both engines, so we cannot use custom functions
like `ANY` in postgres.

The SQLC config file needs to define what is the target engine, we will
set postgres but the generated code can be executed by sqlite too.

In some specific cases, we will `match and replace` some sql lines to be
sure the table definitions are valid for the targeted engine.
2023-07-10 17:36:58 -07:00
..
keys scripts: add ViktorTigerstrom PGP key [skip ci] 2023-07-10 12:55:19 +02:00
check-commit.sh build: check compilation of each commit 2020-12-08 16:19:26 -08:00
check-each-commit.sh build: check compilation of each commit 2020-12-08 16:19:26 -08:00
check-release-notes.sh scripts: update release notes check for merge queue usage 2023-06-15 17:48:55 -05:00
check-rest-annotations.sh make+scripts: fix rpc-check command 2021-07-27 12:59:54 +02:00
fuzz.sh make+scripts+docs: update fuzzing script and make fuzz 2022-11-11 10:30:05 -06:00
gen_sqlc_docker.sh multi: add sqlc support 2023-07-10 17:36:58 -07:00
install_bitcoind.sh build: update CI to build against bitcoind 23 2022-05-04 15:24:22 -07:00
itest_part.sh itest: remove unused flag goroutineDump 2023-02-23 21:56:08 +08:00
release.sh scripts: use shasum instead of sha256sum 2021-02-15 10:26:15 +01:00
verify-install.sh scripts: add ViktorTigerstrom PGP key [skip ci] 2023-07-10 12:55:19 +02:00