schema

package
v0.0.0-...-214d90d Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialect

type Dialect interface {
	Name() string
	Tables() *Tables
	Tag() string
}

type DiscardColumn

type DiscardColumn struct{}

func (*DiscardColumn) Scan

func (*DiscardColumn) Scan(interface{}) error

func (*DiscardColumn) UnmarshalCQL

func (*DiscardColumn) UnmarshalCQL(gocql.TypeInfo, []byte) error

type Field

type Field struct {
	StructField reflect.StructField

	Type  reflect.Type
	Index []int
	Tag   tagparser.Tag

	Name string

	Scan ScannerFunc
}

type ScannerFunc

type ScannerFunc func(dest reflect.Value, src interface{}) error

func FieldScanner

func FieldScanner(dialect Dialect, field *Field) ScannerFunc

func PtrScanner

func PtrScanner(fn ScannerFunc) ScannerFunc

func Scanner

func Scanner(typ reflect.Type) ScannerFunc

type Table

type Table struct {
	Type     reflect.Type
	Fields   []*Field
	FieldMap map[string]*Field
	// contains filtered or unexported fields
}

func NewTable

func NewTable(dialect Dialect, typ reflect.Type) *Table

type Tables

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

func NewTables

func NewTables(dialect Dialect) *Tables

func (*Tables) Get

func (t *Tables) Get(typ reflect.Type) *Table

Jump to

Keyboard shortcuts

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