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 WriteCountRowsFuncs(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)
- func WriteUpsertFunc(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 WriteCountRowsFuncs ¶ added in v0.49.0
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 ¶
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
Thing string
Interface1 string
List string
Suffix string
Sql string
Sqlapi string
Scan 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.