synth

package
v0.0.0-...-d0f7b5f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package synth provides sql synthesis helpers needed by the compiler and vm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTable

func CreateTable(temporary bool, name string, header []string) string

CreateTable synthesizes a create (temporary) table statement using the given header.

func Insert

func Insert(name string, header []string) string

Insert synthesizes an insert statement into the table name, using the given header and with placeholders for each item in the header.

func Values

func Values(preface string, header []string) string

Values synthesizes just the VALUES (?, ..., ?) portion of an insert statement, following preface, if provided.

Types

This section is empty.

Jump to

Keyboard shortcuts

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