Documentation
¶
Index ¶
- func ImportsForFields(table *schema.TableDescription, packages util.StringSet)
- func ImportsForSetters(setters schema.FieldList, packages util.StringSet)
- func WriteConstructInsert(w io.Writer, view View)
- func WriteConstructUpdate(w io.Writer, view View)
- func WriteDeleteFunc(w io.Writer, view View)
- func WriteExecFunc(w io.Writer, view View)
- func WriteGetRow(w io.Writer, view View)
- func WriteImports(w io.Writer, packages util.StringSet)
- func WriteInsertFunc(w io.Writer, view View)
- func WritePackageHeader(w io.Writer, name, version string)
- func WritePrimaryDeclarations(w io.Writer, view View)
- func WriteQueryRows(w io.Writer, view View)
- func WriteQueryThings(w io.Writer, view View)
- func WriteScanRows(w io.Writer, view View)
- func WriteSchemaDeclarations(w io.Writer, view View)
- func WriteSchemaFunctions(w io.Writer, view View)
- func WriteSelectRowsFuncs(w io.Writer, view View)
- func WriteSetters(w io.Writer, view View, fields schema.FieldList)
- func WriteSliceColumn(w io.Writer, view View)
- func WriteType(w io.Writer, view View)
- func WriteUpdateFunc(w io.Writer, view View)
- type ConstView
- type SetterView
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportsForFields ¶
func ImportsForFields(table *schema.TableDescription, packages util.StringSet)
func WriteConstructInsert ¶
func WriteConstructUpdate ¶
func WriteDeleteFunc ¶
func WriteExecFunc ¶
func WriteGetRow ¶
func WriteInsertFunc ¶
func WritePackageHeader ¶
func WriteQueryRows ¶
func WriteQueryThings ¶
func WriteScanRows ¶
func WriteSchemaDeclarations ¶
func WriteSchemaFunctions ¶
func WriteSelectRowsFuncs ¶
func WriteSliceColumn ¶
func WriteUpdateFunc ¶
Types ¶
type SetterView ¶
type View ¶
type View struct { Prefix string Type string Types string DbName string Thing string Interface1 string Interface2 string List string Suffix string Body1 []string Body2 []string Body3 []string Dialects []dialect.Dialect Table *schema.TableDescription Setter *schema.Field }
func (View) Constraints ¶
func (v View) Constraints() (list constraint.Constraints)
Click to show internal directories.
Click to hide internal directories.