mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-09 12:27:52 +00:00
add OptFieldTypeTime comment
This commit is contained in:
parent
3d54f737cd
commit
d9c158445d
1 changed files with 2 additions and 0 deletions
2
field.go
2
field.go
|
|
@ -131,6 +131,8 @@ func OptFieldTypeInt(min, max int64) FieldOption {
|
|||
}
|
||||
}
|
||||
|
||||
// OptFieldTypeTime sets the field type to time.
|
||||
// Pass true to skip creation of the standard view.
|
||||
func OptFieldTypeTime(timeQuantum TimeQuantum, opt ...bool) FieldOption {
|
||||
return func(fo *FieldOptions) error {
|
||||
if fo.Type != "" {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue