Documentation
¶
Overview ¶
Package jone provides a database migration and query building library.
This package re-exports types from sub-packages for convenient access. For more control, import the specific sub-packages directly:
import "github.com/Grandbusta/jone/config" import "github.com/Grandbusta/jone/schema" import "github.com/Grandbusta/jone/migration" import "github.com/Grandbusta/jone/dialect" import "github.com/Grandbusta/jone/query"
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetDialect = dialect.GetDialect
GetDialect returns a dialect implementation by name.
View Source
var NewSchema = schema.New
NewSchema creates a new Schema with the given config.
View Source
var RunDown = migration.RunDown
RunDown rolls back the last single migration.
View Source
var RunLatest = migration.RunLatest
RunLatest executes pending Up migrations in order.
View Source
var RunList = migration.RunList
RunList displays all migrations with their status.
View Source
var RunRollback = migration.RunRollback
RunRollback rolls back the last batch of migrations.
View Source
var RunUp = migration.RunUp
RunUp runs the next pending migration or a specific one.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection = config.Connection
type CoreColumn ¶
type Migrations ¶
type Migrations = config.Migrations
type Registration ¶
type Registration = migration.Registration
Migration types (re-exported from migration package)
type RunOptions ¶
type RunOptions = migration.RunOptions
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
jone
command
|
|
|
jone/templates
Package templates provides code generation templates for the jone CLI.
|
Package templates provides code generation templates for the jone CLI. |
|
Package config provides configuration types for the jone migration tool.
|
Package config provides configuration types for the jone migration tool. |
|
Package dialect provides database-specific SQL generation.
|
Package dialect provides database-specific SQL generation. |
|
internal
|
|
|
term
Package term provides terminal color utilities using ANSI escape codes.
|
Package term provides terminal color utilities using ANSI escape codes. |
|
Package migration provides migration registration and execution.
|
Package migration provides migration registration and execution. |
|
Package query provides query building for DML operations.
|
Package query provides query building for DML operations. |
|
Package types provides core types used across the jone library.
|
Package types provides core types used across the jone library. |
Click to show internal directories.
Click to hide internal directories.