Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GORMConverter ¶
type GORMConverter struct {
// contains filtered or unexported fields
}
GORMConverter defines error converter for multiple databases drivers used by the 'gorm' package. Implements 'Converter' interface.
func New ¶
func New(db *gorm.DB) (conv *GORMConverter, err error)
New creates new *GORMConverter. On the base of the *gorm.DB argument it recognise given gorm.Dialect on the base of the dialect the function recognise the appropiate error converter. returns error if the nil pointer provided or unsupported db.Dialect
Click to show internal directories.
Click to hide internal directories.