package
0.14.7
Repository: https://github.com/gabereiser/go-mysql-server.git
Documentation: pkg.go.dev

# README

// Copyright 2020-2021 Dolthub, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License.

// Package driver implements a driver for Go's database/sql support. // // # Caveats // // Transactions have no effect. // // sql.Result.LastInsertID is not implemented. package driver

# Functions

New returns a driver using the specified provider.

# Constants

ScanAsBytes indicates values should be scanned as byte arrays.
ScanAsObject indicates values should be scanned as objects.
ScanAsStored indicates values should not be modified during scanning.
ScanAsString indicates values should be scanned as strings.

# Variables

ErrUnsupportedType is returned when a query argument of an unsupported type is passed to a statement.

# Structs

Conn is a connection to a database.
A Connector represents a driver in a fixed configuration and can create any number of equivalent Conns for use by multiple goroutines.
DefaultContextBuilder creates basic SQL contexts.
DefaultSessionBuilder creates basic SQL sessions.
A Driver exposes an engine as a stdlib SQL driver.
Options for the driver.
Result is the result of a query execution.
ResultNotFound is returned when a row iterator does not return a result.
Rows is an iterator over an executed query's results.
Stmt is a prepared statement.

# Interfaces

A ContextBuilder creates SQL contexts.
Provider resolves SQL catalogs from DSNs.
ProviderWithContextBuilder is a Provider that also provides a base sql.Context.
ProviderWithSessionBuilder is a Provider that also constructs sessions.
A SessionBuilder creates SQL sessions.

# Type aliases

ScanKind indicates how values should be scanned.