sqlitet

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromMySQL

func FromMySQL(s string) string

FromMySQL converts query from MySQL format into SQLite.

Experimental: this feature is experimental and not recommended to use due not final API.

func FromMySQLCreateTable

func FromMySQLCreateTable(s string) string

FromMySQLCreateTable converts SQL CREATE TABLE query from MySQL format into SQLite.

Experimental: this feature is experimental and not recommended to use due not final API.

func OpenMem

func OpenMem() (*sql.DB, error)

OpenMem opens connection to in-memory database To be used in unit tests

func OpenMemWithMySQLImport

func OpenMemWithMySQLImport(files ...string) (*sql.DB, error)

OpenMemWithMySQLImport opens connection to in-memory database and loads SQL files into it. All files are converted from MySQL format to SQLite.

Experimental: this feature is experimental and not recommended to use due not final API.

Types

This section is empty.

Jump to

Keyboard shortcuts

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