sqlite

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomSanitize

func CustomSanitize(dumpFile string, regex string, replacement []byte) error

CustomSanitize allows you to expand upon the default Sanitize function by providing your own regex matcher and replacement to modify data from the dump file.

func Dump

func Dump(dbFile string, destination string) error

Dump performs a full dump of the SQLite database

func Exists

func Exists() error

Exists checks if `sqlite3 --version` returns without errors

func HexDecode

func HexDecode(dumpFile string) error

HexDecode takes a file path containing a SQLite dump and decodes any hex-encoded data it finds.

func RemoveCreateStatements

func RemoveCreateStatements(dumpFile string) error

RemoveCreateStatements takes all the CREATE statements out of a dump so that no new tables are created.

func Sanitize

func Sanitize(dumpFile string) error

Sanitize cleans up a SQLite dump file to prep it for import into Postgres.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL