mysql

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package mysql provides a common interface for starting sql-lite databases

Index

Constants

This section is empty.

Variables

View Source
var MaxIdleConns = 0

MaxIdleConns is exported here for testing. Tests execute too slowly with a reconnect each time.

Functions

func SetNamingStrategy

func SetNamingStrategy(ns schema.NamingStrategy)

SetNamingStrategy sets the naming strategy for the gorm db.

Types

type Store

type Store struct {
	*base.Store
}

Store is the sqlite store. It extends the base store for sqlite specific queries.

func NewMysqlStore

func NewMysqlStore(ctx context.Context, dbURL string, handler metrics.Handler) (*Store, error)

NewMysqlStore creates a new mysql store for a given data store.

Directories

Path Synopsis
Package util is used to avoid circular dependencies between packages.
Package util is used to avoid circular dependencies between packages.

Jump to

Keyboard shortcuts

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