mysql

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package mysql provides backend for MySQL and compatible databases.

Design principles

  1. Metadata is heavily cached to avoid most queries and transactions.

Index

Constants

View Source
const (
	// ErrDuplicateEntry is the unique key violation error code for MySQL.
	ErrDuplicateEntry = 1062
)

Variables

This section is empty.

Functions

func NewBackend

func NewBackend(params *NewBackendParams) (backends.Backend, error)

NewBackend creates a new Backend.

Types

type NewBackendParams

type NewBackendParams struct {
	URI string
	L   *zap.Logger
	P   *state.Provider
	// contains filtered or unexported fields
}

NewBackendParams represents the parameters of NewBackend function.

Directories

Path Synopsis
Package metadata provides access to databases and collections information.
Package metadata provides access to databases and collections information.
pool
Package pool provides access to MySQL connections.
Package pool provides access to MySQL connections.

Jump to

Keyboard shortcuts

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