Directories
¶
| Path | Synopsis |
|---|---|
|
auth
module
|
|
|
authmodel
module
|
|
|
cmd
|
|
|
rig
command
Command rig is the command line: sync a database into table configuration, validate it, and generate from it.
|
Command rig is the command line: sync a database into table configuration, validate it, and generate from it. |
|
files
module
|
|
|
internal
|
|
|
cli
Package cli implements the rig command line.
|
Package cli implements the rig command line. |
|
compile
Package compile turns a Postgres schema and its table configuration into the frozen document every generator reads.
|
Package compile turns a Postgres schema and its table configuration into the frozen document every generator reads. |
|
diag
Package diag collects the problems rig finds and reports them together.
|
Package diag collects the problems rig finds and reports them together. |
|
dockerdb
Package dockerdb manages the throwaway Postgres rig runs migrations against.
|
Package dockerdb manages the throwaway Postgres rig runs migrations against. |
|
gen/allgen
Package allgen imports every built-in generator for its registration.
|
Package allgen imports every built-in generator for its registration. |
|
gen/gentest
Package gentest is the shared harness for testing generators.
|
Package gentest is the shared harness for testing generators. |
|
gen/genutil
Package genutil holds what more than one Go generator needs.
|
Package genutil holds what more than one Go generator needs. |
|
gen/gobuf
Package gobuf emits Go source.
|
Package gobuf emits Go source. |
|
gen/goclient
Package goclient generates a Go SDK for the API: the types a caller holds and one method per endpoint.
|
Package goclient generates a Go SDK for the API: the types a caller holds and one method per endpoint. |
|
gen/modelgo
Package modelgo generates the model layer: the entity, its enums, its query types, and the inputs that change it.
|
Package modelgo generates the model layer: the entity, its enums, its query types, and the inputs that change it. |
|
gen/openapigen
Package openapigen generates an OpenAPI 3.1 document from the compiled document, so a specification cannot describe an API that does not exist.
|
Package openapigen generates an OpenAPI 3.1 document from the compiled document, so a specification cannot describe an API that does not exist. |
|
gen/persistgo
Package persistgo generates the persistence layer: a repository interface and its pgx implementation.
|
Package persistgo generates the persistence layer: a repository interface and its pgx implementation. |
|
gen/servergo
Package servergo generates the HTTP layer: routing, decoding, and the registration struct.
|
Package servergo generates the HTTP layer: routing, decoding, and the registration struct. |
|
gen/servicego
Package servicego generates the API layer's types and the interface your service layer implements.
|
Package servicego generates the API layer's types and the interface your service layer implements. |
|
gen/tsbuf
Package tsbuf builds one TypeScript file.
|
Package tsbuf builds one TypeScript file. |
|
gen/tsclient
Package tsclient generates a TypeScript SDK for the API: the types a front end holds, one method per endpoint, and a factory per live-sync stream.
|
Package tsclient generates a TypeScript SDK for the API: the types a front end holds, one method per endpoint, and a factory per live-sync stream. |
|
godoccheck
command
Command godoccheck fails on an exported symbol with no doc comment.
|
Command godoccheck fails on an exported symbol with no doc comment. |
|
introspect
Package introspect reads a live Postgres schema into rig's intermediate representation.
|
Package introspect reads a live Postgres schema into rig's intermediate representation. |
|
migcheck
Package migcheck checks a project's migration file names before they are applied to anything.
|
Package migcheck checks a project's migration file names before they are applied to anything. |
|
naming
Package naming converts between the three casings rig deals with: the snake_case of Postgres, the PascalCase of Go and TypeScript identifiers, and the camelCase of JSON keys.
|
Package naming converts between the three casings rig deals with: the snake_case of Postgres, the PascalCase of Go and TypeScript identifiers, and the camelCase of JSON keys. |
|
pgtypes
Package pgtypes maps Postgres types onto Go types and scan strategies.
|
Package pgtypes maps Postgres types onto Go types and scan strategies. |
|
project
Package project reads rig.yaml, the file that marks the root of a rig project and configures everything that is not per-table.
|
Package project reads rig.yaml, the file that marks the root of a rig project and configures everything that is not per-table. |
|
release
command
Command release prepares a lockstep release of every published rig module.
|
Command release prepares a lockstep release of every published rig module. |
|
revision
Package revision records when a project's API surface last changed.
|
Package revision records when a project's API surface last changed. |
|
scaffold
Package scaffold writes the files a new rig project starts from.
|
Package scaffold writes the files a new rig project starts from. |
|
tableconf
Package tableconf reads the per-table YAML that annotates an introspected schema.
|
Package tableconf reads the per-table YAML that annotates an introspected schema. |
|
tablesync
Package tablesync keeps table configuration in step with the database.
|
Package tablesync keeps table configuration in step with the database. |
|
version
Package version answers what build of rig this is.
|
Package version answers what build of rig this is. |
|
yamlconf
Package yamlconf loads YAML configuration and keeps track of where every key came from.
|
Package yamlconf loads YAML configuration and keeps track of where every key came from. |
|
migrate
module
|
|
|
notify
module
|
|
|
observe
module
|
|
|
pkg
|
|
|
gen
Package gen defines what a generator is and how rig runs one.
|
Package gen defines what a generator is and how rig runs one. |
|
ir
Package ir defines the intermediate representation that rig compiles a Postgres schema and its table configuration into, and that every generator reads.
|
Package ir defines the intermediate representation that rig compiles a Postgres schema and its table configuration into, and that every generator reads. |
|
presence
module
|
|
|
rigclient
module
|
|
|
rigs3
module
|
|
|
rigtest
module
|
|
|
runtime
module
|
Click to show internal directories.
Click to hide internal directories.