Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToSQLiteFile ¶
ConvertDumpToSQLiteFile uses mysql2sqlite to convert a MySQL dump into a SQLite-compatible SQL file.
func ExportSQL ¶
func ExportSQL(dsn, outputFile string, dumpOpts ...mysqldump.DumpOption) error
ExportSQL dumps MySQL data into a SQL file.
func ImportToSQLiteDB ¶
ImportDumpToSQLiteDB pipes the converted dump into sqlite3 to generate a SQLite database file.
Types ¶
type Option ¶
type Option func(*options)
Option allows customizing command paths at runtime.
func WithMysql2sqlitePath ¶
WithMysql2sqlitePath lets callers override the mysql2sqlite executable path.
func WithSQLite3Path ¶
WithSQLite3Path lets callers override the sqlite3 binary path.
Click to show internal directories.
Click to hide internal directories.