sql

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package sql implements providers for cheesegull using SQL. This is tested with MySQL.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoMigrateDB

func AutoMigrateDB(db *sqlx.DB) error

AutoMigrateDB automatically updates a database to the latest version.

func MapperFunc

func MapperFunc(s string) string

MapperFunc is the MapperFunc to set to an sqlx db so that it can work properly with structs.

Types

type Provided

type Provided interface {
	cheesegull.BeatmapService
}

Provided is a struct containing the services implemented by this package.

func Open

func Open(driver string, dsn string) (Provided, error)

Open creates a new database

Jump to

Keyboard shortcuts

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