values

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(sw io.StringWriter, exprs []expressions.Expression) error

Write writes a values clause to the given io.Writer.

Example:

VALUES ($1, $2, $3)
VALUES (DEFAULT, $1, $2)

Types

type Clause

type Clause struct {
	// contains filtered or unexported fields
}

Clause represents a values clause.

func New

func New(expressions []expressions.Expression) *Clause

New creates a new Values clause.

func (*Clause) Type

func (*Clause) Type() clauses.ClauseType

Type implements Clause.

func (*Clause) Write added in v0.0.3

func (v *Clause) Write(sw io.StringWriter) error

type DefaultValue

type DefaultValue struct{}

DefaultValue is a default value clause.

Only supported in PostgreSQL and MySQL.

Jump to

Keyboard shortcuts

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