270fe59117
* Added finisher function signatures * Added VideoSlice type * Added videoQuery type
15 lines
399 B
Smarty
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) {
|
|
|
|
}
|