Documentation ¶
Index ¶
- func SpanIndexColumns(client *spanner.Client, table string, index string) ([]*models.IndexColumn, error)
- func SpanParseType(dt string, nullable bool) (int, string, string)
- func SpanTableColumns(client *spanner.Client, table string) ([]*models.Column, error)
- func SpanTableIndexes(client *spanner.Client, table string) ([]*models.Index, error)
- func SpanValidateCustomType(dataType string, customType string) bool
- func SpanView(client *spanner.Client, viewName string) (*models.TableView, error)
- type SpannerLoader
- func (s *SpannerLoader) ColumnList(table string) ([]*models.Column, error)
- func (s *SpannerLoader) IndexColumnList(table string, index string) ([]*models.IndexColumn, error)
- func (s *SpannerLoader) IndexList(table string) ([]*models.Index, error)
- func (s *SpannerLoader) MaskFunc() string
- func (s *SpannerLoader) ParamN(n int) string
- func (s *SpannerLoader) ParseType(dt string, nullable bool) (int, string, string)
- func (s *SpannerLoader) TableList() ([]*models.Table, error)
- func (s *SpannerLoader) ValidCustomType(dataType string, customType string) bool
- type SpannerLoaderFromDDL
- func (s *SpannerLoaderFromDDL) ColumnList(name string) ([]*models.Column, error)
- func (s *SpannerLoaderFromDDL) IndexColumnList(table, index string) ([]*models.IndexColumn, error)
- func (s *SpannerLoaderFromDDL) IndexList(name string) ([]*models.Index, error)
- func (s *SpannerLoaderFromDDL) MaskFunc() string
- func (s *SpannerLoaderFromDDL) ParamN(n int) string
- func (s *SpannerLoaderFromDDL) ParseType(dt string, nullable bool) (int, string, string)
- func (s *SpannerLoaderFromDDL) TableList() ([]*models.Table, error)
- func (s *SpannerLoaderFromDDL) ValidCustomType(dataType string, customType string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SpanIndexColumns ¶
func SpanIndexColumns(client *spanner.Client, table string, index string) ([]*models.IndexColumn, error)
SpanIndexColumns runs a custom query, returning results as IndexColumn.
func SpanParseType ¶
SpanParseType parse a mysql type into a Go type based on the column definition.
func SpanTableColumns ¶
SpanTableColumns parses the query and generates a type for it.
func SpanTableIndexes ¶
func SpanValidateCustomType ¶
Types ¶
type SpannerLoader ¶
type SpannerLoader struct {
// contains filtered or unexported fields
}
func NewSpannerLoader ¶
func NewSpannerLoader(client *spanner.Client) *SpannerLoader
func (*SpannerLoader) ColumnList ¶
func (s *SpannerLoader) ColumnList(table string) ([]*models.Column, error)
func (*SpannerLoader) IndexColumnList ¶
func (s *SpannerLoader) IndexColumnList(table string, index string) ([]*models.IndexColumn, error)
func (*SpannerLoader) IndexList ¶
func (s *SpannerLoader) IndexList(table string) ([]*models.Index, error)
func (*SpannerLoader) MaskFunc ¶
func (s *SpannerLoader) MaskFunc() string
func (*SpannerLoader) ParamN ¶
func (s *SpannerLoader) ParamN(n int) string
func (*SpannerLoader) ValidCustomType ¶
func (s *SpannerLoader) ValidCustomType(dataType string, customType string) bool
type SpannerLoaderFromDDL ¶
type SpannerLoaderFromDDL struct {
// contains filtered or unexported fields
}
func NewSpannerLoaderFromDDL ¶
func NewSpannerLoaderFromDDL(fpath string) (*SpannerLoaderFromDDL, error)
func (*SpannerLoaderFromDDL) ColumnList ¶
func (s *SpannerLoaderFromDDL) ColumnList(name string) ([]*models.Column, error)
func (*SpannerLoaderFromDDL) IndexColumnList ¶
func (s *SpannerLoaderFromDDL) IndexColumnList(table, index string) ([]*models.IndexColumn, error)
func (*SpannerLoaderFromDDL) IndexList ¶
func (s *SpannerLoaderFromDDL) IndexList(name string) ([]*models.Index, error)
func (*SpannerLoaderFromDDL) MaskFunc ¶
func (s *SpannerLoaderFromDDL) MaskFunc() string
func (*SpannerLoaderFromDDL) ParamN ¶
func (s *SpannerLoaderFromDDL) ParamN(n int) string
func (*SpannerLoaderFromDDL) TableList ¶
func (s *SpannerLoaderFromDDL) TableList() ([]*models.Table, error)
func (*SpannerLoaderFromDDL) ValidCustomType ¶
func (s *SpannerLoaderFromDDL) ValidCustomType(dataType string, customType string) bool
Click to show internal directories.
Click to hide internal directories.