Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
func WithIgnoreRecordNotFound ¶
func WithIgnoreRecordNotFound() Options
WithIgnoreRecordNotFound shutdown the error record not found, because by default GORM will throw error on record not found.
func WithLogLevel ¶
WithLogLevel set the GORM's logger log level. Should be set as follows
1: Silent 2: Error (only log error query) 3: Warn (include warning query) 4: Info (most verbose)
func WithThreshold ¶
WithThreshold set the duration of GORM's operation that's regarded as slow operation in milliseconds.
Click to show internal directories.
Click to hide internal directories.