Documentation ¶
Index ¶
- func EndType(w1, w2 io.Writer, view View)
- func ImportsForFields(table *schema.TableDescription, packages collection.StringSet)
- func ImportsForSetters(setters schema.FieldList, packages collection.StringSet)
- func WriteConstructInsert(w io.Writer, view View)
- func WriteConstructUpdate(w io.Writer, view View)
- func WriteCountRowsFuncs(w1, w2 io.Writer, view View)
- func WriteDeleteFunc(w1, w2 io.Writer, view View)
- func WriteExecFunc(w1, w2 io.Writer, view View)
- func WriteGetRow(w1, w2 io.Writer, view View)
- func WriteImports(w io.Writer, packages collection.StringSet)
- func WriteInsertFunc(w1, w2 io.Writer, view View)
- func WritePackageHeader(w io.Writer, name, version string)
- func WritePrimaryDeclarations(w io.Writer, view View)
- func WriteQueryRows(w1, w2 io.Writer, view View)
- func WriteQueryThings(w1, w2 io.Writer, view View)
- func WriteScanRows(w io.Writer, view View)
- func WriteSchemaDeclarations(w io.Writer, view View)
- func WriteSchemaFunctions(w1, w2 io.Writer, view View)
- func WriteSelectRowsFuncs(w1, w2 io.Writer, view View)
- func WriteSetters(w1, w2 io.Writer, view View, fields schema.FieldList)
- func WriteSliceColumn(w1, w2 io.Writer, view View)
- func WriteType(w1, w2, w3 io.Writer, view View)
- func WriteUpdateFunc(w1, w2 io.Writer, view View)
- func WriteUpsertFunc(w1, w2 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 collection.StringSet)
func ImportsForSetters ¶
func ImportsForSetters(setters schema.FieldList, packages collection.StringSet)
func WriteConstructInsert ¶
func WriteConstructUpdate ¶
func WriteCountRowsFuncs ¶ added in v0.49.0
func WriteDeleteFunc ¶
func WriteExecFunc ¶
func WriteGetRow ¶
func WriteImports ¶
func WriteImports(w io.Writer, packages collection.StringSet)
func WriteInsertFunc ¶
func WritePackageHeader ¶
func WriteQueryRows ¶
func WriteQueryThings ¶
func WriteScanRows ¶
func WriteSchemaDeclarations ¶
func WriteSchemaFunctions ¶
func WriteSelectRowsFuncs ¶
func WriteSliceColumn ¶
func WriteUpdateFunc ¶
func WriteUpsertFunc ¶ added in v0.49.0
Types ¶
type View ¶
type View struct { TypePkg string TablePkg string Prefix string Type string Types string DbName string HasConstraints bool Thing string Thinger string Interface1 string List string Suffix string Sql string Sqlapi string Scan string Body1 []string Body2 []string Body3 []string Dialects []driver.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.