sql

package
v0.0.0-...-9869d36 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 11 Imported by: 0

README

SQL Store

SQL package helps turn any SQL database into a Store

SQLite

sqlite_store = store.New(
    generated.Schema(),
    sql.Factory(sql.SqliteConnection("test.sqlite")))

mySQL

mysql_store = store.New(
    generated.Schema(),
    sql.Factory(sql.MySqlConnection(
        "user:pass@tcp(127.0.0.1:3306)/db"))

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory(connector _ConnectionMaker) store.Factory

func MySqlConnection

func MySqlConnection(path string) _ConnectionMaker

func SqliteConnection

func SqliteConnection(path string) _ConnectionMaker

Types

This section is empty.

Jump to

Keyboard shortcuts

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