cache

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnSchema

type ColumnSchema struct {
	DataType   string
	CharMaxLen int64
}

type Schema

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

func NewSchema

func NewSchema(db *sqlx.DB, track *Track) (*Schema, error)

func (*Schema) Delete

func (s *Schema) Delete(column *sqlx.Column)

func (*Schema) TableColumns

func (s *Schema) TableColumns(table *sqlx.Table) []string

func (*Schema) TableSchema

func (s *Schema) TableSchema(table *sqlx.Table) map[string]ColumnSchema

func (*Schema) Update

func (s *Schema) Update(column *sqlx.Column, dataType string, charMaxLen int64)

type Track

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

func NewTrack

func NewTrack(db *sqlx.DB) (*Track, error)

func (*Track) Add

func (t *Track) Add(table *sqlx.Table) error

func (*Track) Contains

func (t *Track) Contains(table *sqlx.Table) bool

Jump to

Keyboard shortcuts

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