Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Added missing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Feb 23, 2022
1 parent 3ae3861 commit 9cb98e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func WithSQLite(config *datastore.SQLiteConfig) ClientOps {
}
}

// WithSQL will load a Datastore using either an SQL database config or existing connection
// WithSQL will set the datastore to use the SQL config
func WithSQL(engine datastore.Engine, config *datastore.SQLConfig) ClientOps {
return func(c *clientOptions) {
if config != nil && !engine.IsEmpty() {
Expand Down
2 changes: 1 addition & 1 deletion models.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Model struct {

CreatedAt time.Time `json:"created_at" toml:"created_at" yaml:"created_at" gorm:"comment:The time that the record was originally created" bson:"created_at"`
UpdatedAt time.Time `json:"updated_at" toml:"updated_at" yaml:"updated_at" gorm:"comment:The time that the record was last updated" bson:"updated_at,omitempty"`
Metadata Metadata `gorm:"type:json" json:"metadata,omitempty" bson:"metadata,omitempty"`
Metadata Metadata `gorm:"type:json;comment:The JSON metadata for the record" json:"metadata,omitempty" bson:"metadata,omitempty"`

// https://gorm.io/docs/indexes.html
// DeletedAt gorm.DeletedAt `json:"deleted_at" toml:"deleted_at" yaml:"deleted_at" (@mrz: this was the original type)
Expand Down

0 comments on commit 9cb98e9

Please sign in to comment.