Documentation ¶
Index ¶
- func ConvertCase(s string, c Case) string
- func NormalizeCase(s string) string
- type Case
- type Converter
- func (c *Converter) ConvertDefinition(def *ast.Definition) (*spansql.CreateTable, error)
- func (c *Converter) ConvertField(f *ast.FieldDefinition) (*spansql.ColumnDef, error)
- func (c *Converter) ConvertFieldName(f *ast.FieldDefinition) (string, error)
- func (c *Converter) ConvertListField(l *ast.Type) (spansql.TypeBase, error)
- func (c *Converter) ConvertType(t string) (spansql.TypeBase, error)
- func (c *Converter) DetectPK(objName string, fields ast.FieldList) ([]spansql.KeyPart, bool)
- func (c *Converter) SpannerSQL() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertCase ¶
func NormalizeCase ¶
Types ¶
type Case ¶
type Case int
func DetectCase ¶
func DetectCase(def *ast.FieldDefinition) Case
func LazySpannerColumnCaseOf ¶
LazySpannerColumnCaseOf jude case lazily.
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
func NewConverter ¶
func (*Converter) ConvertDefinition ¶
func (c *Converter) ConvertDefinition(def *ast.Definition) (*spansql.CreateTable, error)
func (*Converter) ConvertField ¶
func (*Converter) ConvertFieldName ¶
func (c *Converter) ConvertFieldName(f *ast.FieldDefinition) (string, error)
func (*Converter) ConvertListField ¶
func (*Converter) SpannerSQL ¶
Click to show internal directories.
Click to hide internal directories.