testdialect

package
v0.1.3-rc.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package testdialect provides dialect implementations for core package tests. Production code should use x/providers/*/Dialect instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQL

type MySQL struct{}

MySQL is a MySQL dialect for tests.

func (MySQL) Capabilities

func (MySQL) Capabilities() dialect.Capabilities

func (MySQL) ExplainSQL

func (MySQL) ExplainSQL(q string) string

func (MySQL) Name

func (MySQL) Name() string

func (MySQL) Placeholder

func (MySQL) Placeholder(_ int) string

func (MySQL) QuoteIdent

func (MySQL) QuoteIdent(name string) string

type Postgres

type Postgres struct{}

Postgres is a PostgreSQL dialect for tests.

func (Postgres) Capabilities

func (Postgres) Capabilities() dialect.Capabilities

func (Postgres) ExplainSQL

func (Postgres) ExplainSQL(q string) string

func (Postgres) Name

func (Postgres) Name() string

func (Postgres) Placeholder

func (Postgres) Placeholder(i int) string

func (Postgres) QuoteIdent

func (Postgres) QuoteIdent(name string) string

Jump to

Keyboard shortcuts

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