from

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(sw io.StringWriter, from From) error

Write writes a SQL Write string to the given string writer.

Examples:

FROM table AS alias
FROM table
FROM (SELECT * FROM table) AS alias

Types

type Clause

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

Clause represents a FROM clause.

func New

func New(from From) *Clause

New creates a new from clause

func (*Clause) Type

func (c *Clause) Type() clauses.ClauseType

func (*Clause) Write added in v0.0.3

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

type From added in v0.0.2

type From struct {
	Expr expressions.Expression
	As   string
}

From represents a FROM.

func NewFrom added in v0.0.3

func NewFrom(table string, as string) From

NewFrom is a helper function to create a new From clause.

Jump to

Keyboard shortcuts

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