sqlitechangeset

package module
v0.0.0-...-28d0f42 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AlwaysUseBlob bool

AlwaysUseBlob forces TEXT values to be encoded as hex, as a BLOB would be. This was added to address a potential bug in sqlite that causes BLOBs to be interpretted as TEXT.

Functions

func ChangesetIterToSQL

func ChangesetIterToSQL(conn *sqlite.Conn, iter sqlite.ChangesetIter) (sql string, err error)

func ConflictChangesetIterToSQL

func ConflictChangesetIterToSQL(conn *sqlite.Conn, iter sqlite.ChangesetIter) (string, error)

func SessionToSQL

func SessionToSQL(conn *sqlite.Conn, sess *sqlite.Session) (sql string, err error)

func ToSQL

func ToSQL(conn *sqlite.Conn, changeset io.Reader) (sql string, err error)

ToSQL converts changeset, which may also be a patchset, into the equivalent SQL statements. The column names are queried from the database connected to by sqliteConn.

Types

This section is empty.

Jump to

Keyboard shortcuts

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