sqlite3

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CurrentTimestamp = `CURRENT_TIMESTAMP`

CurrentTimestamp is a default option for sqlite3 column types, but it only has second resolution

Variables

This section is empty.

Functions

This section is empty.

Types

type Datetime added in v0.3.0

type Datetime struct {
	PrimaryKey bool
	NotNull    bool
	Default    string // TODO Should this be a clause that compiles?
}

func (Datetime) Create added in v0.3.0

func (s Datetime) Create(d aspect.Dialect) (string, error)

Create returns the syntax need to create this column in CREATE statements.

func (Datetime) IsPrimaryKey added in v0.3.0

func (s Datetime) IsPrimaryKey() bool

func (Datetime) IsRequired added in v0.3.0

func (s Datetime) IsRequired() bool

func (Datetime) IsUnique added in v0.3.0

func (s Datetime) IsUnique() bool

func (Datetime) Validate added in v0.3.0

func (s Datetime) Validate(i interface{}) (interface{}, error)

type Sqlite3

type Sqlite3 struct{}

Sqlite3 implements the Dialect interface for sqlite3 databases.

func (*Sqlite3) Parameterize

func (d *Sqlite3) Parameterize(i int) string

Parameterize returns the sqlite3 specific parameterization scheme.

Jump to

Keyboard shortcuts

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