dialect

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Placeholder

type Placeholder chan string

SQL Placeholder support SQLite uses `?` for a placeholder, PostgreSQL uses `$1`, `$2`, ...

func DollarCounter

func DollarCounter(numFields int) Placeholder

create a placeholder generator that returns incrementing $n values

func QuestionMarker

func QuestionMarker(numFields int) Placeholder

create a placeholder generator that returns question marks

func (Placeholder) Next

func (p Placeholder) Next() string

retrieve the next placeholder value, panic if channel closed

type PlaceholderGenerator

type PlaceholderGenerator func(int) Placeholder

a placeholder generator type

Jump to

Keyboard shortcuts

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