datamapper

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: MIT Imports: 7 Imported by: 0

README

Datamapper

Database data mapper with code generation

WARNING!!! Very early unstable implementation!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name string
	Ref  interface{}
}

type Fieldset

type Fieldset []*Field

func NewFieldset

func NewFieldset(fields ...*Field) Fieldset

func (Fieldset) SelectColumns

func (s Fieldset) SelectColumns() []string

func (Fieldset) SelectFields

func (s Fieldset) SelectFields() []interface{}

type IntBool

type IntBool struct {
	V *bool
}

func (*IntBool) Scan

func (b *IntBool) Scan(value interface{}) error

func (*IntBool) Value

func (b *IntBool) Value() (driver.Value, error)

type NullInt

type NullInt struct {
	V *int
}

func (*NullInt) Scan

func (s *NullInt) Scan(value interface{}) error

func (*NullInt) Value

func (s *NullInt) Value() (driver.Value, error)

type NullString

type NullString struct {
	V *string
}

func (*NullString) Scan

func (s *NullString) Scan(value interface{}) error

func (*NullString) Value

func (s *NullString) Value() (driver.Value, error)

type NullTime

type NullTime struct {
	V *time.Time
}

func (*NullTime) Scan

func (t *NullTime) Scan(value interface{}) error

func (*NullTime) Value

func (t *NullTime) Value() (driver.Value, error)

Directories

Path Synopsis
cmd
tag
internal
cli

Jump to

Keyboard shortcuts

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