Directories
¶
| Path | Synopsis |
|---|---|
|
Package cmd contains all Cobra CLI commands for drp.
|
Package cmd contains all Cobra CLI commands for drp. |
|
drp
command
|
|
|
internal
|
|
|
config
Package config loads and validates the project's .env configuration.
|
Package config loads and validates the project's .env configuration. |
|
db
Package db handles database connectivity: opening connections, creating the target database if it doesn't exist, and ensuring the schema_history bookkeeping table exists.
|
Package db handles database connectivity: opening connections, creating the target database if it doesn't exist, and ensuring the schema_history bookkeeping table exists. |
|
db/driver
Package driver defines the Driver interface that every database driver must satisfy, and provides a factory for resolving the correct driver from a config string.
|
Package driver defines the Driver interface that every database driver must satisfy, and provides a factory for resolving the correct driver from a config string. |
|
doctor
Package doctor implements the environment checks for `drp doctor`.
|
Package doctor implements the environment checks for `drp doctor`. |
|
generator/embedded
Package embedded holds the fallback copies of every DRP template, embedded into the binary at compile time.
|
Package embedded holds the fallback copies of every DRP template, embedded into the binary at compile time. |
|
migration
Package migration implements the core migration engine: file discovery, schema_history bookkeeping, and up/down/rollback/fresh execution.
|
Package migration implements the core migration engine: file discovery, schema_history bookkeeping, and up/down/rollback/fresh execution. |
|
output
Package output provides consistent, symbol-prefixed CLI output used by every command instead of ad-hoc fmt calls.
|
Package output provides consistent, symbol-prefixed CLI output used by every command instead of ad-hoc fmt calls. |
|
seeder
Package seeder implements the seeder engine: creating seeder files and running them against the database in order.
|
Package seeder implements the seeder engine: creating seeder files and running them against the database in order. |
|
pkg
|
|
|
mailer
Package mailer provides a simple SMTP mailer for generated projects.
|
Package mailer provides a simple SMTP mailer for generated projects. |
|
response
Package response provides consistent JSON HTTP response helpers for generated handlers.
|
Package response provides consistent JSON HTTP response helpers for generated handlers. |
Click to show internal directories.
Click to hide internal directories.