mysql

package
v0.25.11 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 10 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.

View Source
var NamingStrategy = schema.NamingStrategy{}

NamingStrategy is used to exported here for testing.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

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