mysql

package
v0.0.216 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package mysql contains a mysql db

Index

Constants

This section is empty.

Variables

View Source
var MaxIdleConns = 10

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

View Source
var NamingStrategy = schema.NamingStrategy{}

NamingStrategy is for table prefixes.

Functions

This section is empty.

Types

type Store

type Store struct {
	*base.Store
}

Store is the mysql store. It extends the bsae store for mysql 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