sqlboiler/cmds/templates/finishers.tpl
Patrick O'brien 270fe59117 Fixed all template function signatures
* Added finisher function signatures
* Added VideoSlice type
* Added videoQuery type
2016-04-17 19:25:09 +10:00

15 lines
399 B
Smarty

{{- $tableNameSingular := titleCaseSingular .Table.Name -}}
{{- $varNameSingular := camelCaseSingular .Table.Name -}}
type {{$tableNameSingular}}Slice []*{{$tableNameSingular}}
func ({{$varNameSingular}}Query) One() (*{{$tableNameSingular}}, error) {
}
func ({{$varNameSingular}}Query) All() ({{$tableNameSingular}}Slice, error) {
}
func ({{$varNameSingular}}Query) Count() (int64, error) {
}