enum

package
v0.0.0-...-37c7f33 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookType

type BookType uint16

BookType is the 'book_type' enum type from schema 'Public'.

const (
	// UnknownBookType defines an invalid BookType.
	UnknownBookType BookType = 0
	FictionBookType BookType = 1

	NonfictionBookType BookType = 2
)

func ParseBookType

func ParseBookType(s string) (BookType, error)

ParseBookType converts s into a BookType if it is a valid stringified value of BookType.

func (BookType) MarshalText

func (e BookType) MarshalText() ([]byte, error)

MarshalText marshals BookType into text.

func (*BookType) Scan

func (e *BookType) Scan(src interface{}) error

Scan satisfies the database/sql.Scanner interface for BookType.

func (BookType) String

func (e BookType) String() string

String returns the string value of the BookType.

func (*BookType) UnmarshalText

func (e *BookType) UnmarshalText(text []byte) error

UnmarshalText unmarshals BookType from text.

func (BookType) Value

func (e BookType) Value() (driver.Value, error)

Value satisfies the sql/driver.Valuer interface for BookType.

type BookTypeField

type BookTypeField string

BookTypeField is a component that returns a generated.Where that contains a comparison based on its field and a strongly typed value.

func (BookTypeField) Equals

func (f BookTypeField) Equals(v BookType) generated.Where

Equals returns a generated.WhereClause for this field.

func (BookTypeField) GreaterOrEqual

func (f BookTypeField) GreaterOrEqual(v BookType) generated.Where

GreaterOrEqual returns a generated.Where for this field.

func (BookTypeField) GreaterThan

func (f BookTypeField) GreaterThan(v BookType) generated.Where

GreaterThan returns a generated.Where for this field.

func (BookTypeField) In

In returns a generated.Where for this field.

func (BookTypeField) LessOrEqual

func (f BookTypeField) LessOrEqual(v BookType) generated.Where

LessOrEqual returns a generated.Where for this field.

func (BookTypeField) LessThan

func (f BookTypeField) LessThan(v BookType) generated.Where

LessThan returns a generated.Where for this field.

func (BookTypeField) NotEqual

func (f BookTypeField) NotEqual(v BookType) generated.Where

NotEqual returns a generated.Where for this field.

Jump to

Keyboard shortcuts

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