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