Help us shape the future of Go! Take the 2026 Go Developer Survey

drivertype

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package drivertype defines drivertype.Type, which is the type of a driver, e.g. "mysql", "postgres", "csv", etc. This is broken out into its own package to avoid circular dependencies.

Index

Constants

View Source
const (
	// SQLite is for sqlite3.
	SQLite = Type("sqlite3")

	// Rqlite is for rqlite, a distributed relational database built on
	// SQLite. See https://rqlite.io.
	Rqlite = Type("rqlite")

	// DuckDB is for duckdb.
	DuckDB = Type("duckdb")

	// Pg is for Postgres.
	Pg = Type("postgres")

	// MSSQL is for Microsoft SQL Server.
	MSSQL = Type("sqlserver")

	// MySQL is for MySQL and similar DBs such as MariaDB.
	MySQL = Type("mysql")

	// ClickHouse is for ClickHouse.
	ClickHouse = Type("clickhouse")

	// Oracle is for Oracle Database.
	Oracle = Type("oracle")

	// CSV is for Comma-Separated Values.
	CSV = Type("csv")

	// TSV is for Tab-Separated Values.
	TSV = Type("tsv")

	// JSON is for plain-old JSON.
	JSON = Type("json")

	// JSONA is for JSON Array.
	JSONA = Type("jsona")

	// JSONL is for JSON Lines, aka ndjson (newline-delimited).
	JSONL = Type("jsonl")

	// XLSX is for Microsoft Excel spreadsheets.
	XLSX = Type("xlsx")
)

Driver types.

View Source
const None = Type("")

None is the zero value of Type.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type string

Type is a driver type, e.g. "mysql", "postgres", "csv", etc.

func (Type) String

func (t Type) String() string

String returns a log/debug-friendly representation.

Jump to

Keyboard shortcuts

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