Documentation ¶
Index ¶
Constants ¶
View Source
const GormClauseName = "plugin:sql-commenter"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqlComment ¶
SqlComment contains tags for the request
func NewTag ¶
func NewTag(key string, value string) SqlComment
func NewTags ¶
func NewTags(tags map[string]string) SqlComment
func (SqlComment) AddTag ¶
func (sqlComment SqlComment) AddTag(key string, value string)
func (SqlComment) Build ¶
func (sqlComment SqlComment) Build(builder clause.Builder)
Build builds the comment clause
func (SqlComment) MergeClause ¶
func (sqlComment SqlComment) MergeClause(mergeClause *clause.Clause)
MergeClause merge SqlCommenter clauses
func (SqlComment) Name ¶
func (sqlComment SqlComment) Name() string
type SqlCommenterPlugin ¶
type SqlCommenterPlugin struct{}
func (*SqlCommenterPlugin) Initialize ¶
func (e *SqlCommenterPlugin) Initialize(db *gorm.DB) error
Initialize register BuildClauses used to generate the comment
func (*SqlCommenterPlugin) Name ¶
func (e *SqlCommenterPlugin) Name() string
Click to show internal directories.
Click to hide internal directories.