sqlboiler/cmds/templates/finishers.tpl

16 lines
438 B
Smarty
Raw Normal View History

{{- $tableNameSingular := titleCaseSingular .Table.Name -}}
{{- $varNameSingular := camelCaseSingular .Table.Name -}}
type {{$varNameSingular}}Slice []*{{$tableNameSingular}}
func ({{$varNameSingular}}Query) One() (*{{$tableNameSingular}}, error) {
2016-04-24 07:33:05 +02:00
return nil, nil
}
func ({{$varNameSingular}}Query) All() ({{$varNameSingular}}Slice, error) {
2016-04-24 07:33:05 +02:00
return nil, nil
}
func ({{$varNameSingular}}Query) Count() (int64, error) {
2016-04-24 07:33:05 +02:00
return 0, nil
}