mysql

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Overview

Package mysql provides a Cloud SQL MySQL driver that uses go-sql-driver/mysql and works with database/sql

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDriver

func RegisterDriver(name string, opts ...cloudsqlconn.Option) (func() error, error)

RegisterDriver registers a MySQL driver that uses the cloudsqlconn.Dialer configured with the provided options. The choice of name is entirely up to the caller and may be used to distinguish between multiple registrations of differently configured Dialers.

Types

type LivenessCheckConn added in v1.1.1

type LivenessCheckConn struct {
	net.Conn
}

LivenessCheckConn wraps the underlying connection with support for a liveness check.

See https://github.com/go-sql-driver/mysql/pull/934 for details.

func (*LivenessCheckConn) SyscallConn added in v1.1.1

func (c *LivenessCheckConn) SyscallConn() (syscall.RawConn, error)

SyscallConn supports a connection check in the MySQL driver by delegating to the underlying non-TLS net.Conn.

Jump to

Keyboard shortcuts

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