Documentation
¶
Overview ¶
Package dump produces a portable SQL dump of a local SQLite database — the schema as CREATE statements plus the data as INSERTs — equivalent to the sqlite3 shell's ".dump" command. The output is a standalone .sql file that recreates the database when fed back into sqlite3 (or litescope migrate).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// SchemaOnly emits only DDL (CREATE statements), no INSERTs.
SchemaOnly bool
// DataOnly emits only INSERTs, no schema.
DataOnly bool
// Table, when non-empty, restricts the dump to a single table (and its data).
Table string
}
Options controls what the dump includes.
Click to show internal directories.
Click to hide internal directories.