drivertype

package
v0.48.4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 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")

	// 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")

	// 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