Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LogFieldSQL = log.Path{Identifier: "sql"} LogFieldSQLRequest = log.Path{Parent: &LogFieldSQL, Identifier: "request"} LogFieldSQLRowsAffected = log.Path{Parent: &LogFieldSQLRequest, Identifier: "rows_affected"} LogFieldSQLQuery = log.Path{Parent: &LogFieldSQLRequest, Identifier: "query"} LogScopeTime = log.Path{Parent: &LogFieldSQLRequest, Identifier: "time"} LogFieldTimeStarted = log.Path{Parent: &LogScopeTime, Identifier: "started"} LogFieldTimeEnded = log.Path{Parent: &LogScopeTime, Identifier: "ended"} LogFieldDuration = log.Path{Parent: &LogScopeTime, Identifier: "duration_ms"} )
Functions ¶
This section is empty.
Types ¶
type Database ¶
func NewPostgresDatabase ¶
func NewPostgresDatabase(config *domain.PostgresConfig, metrics metrics.MetricsInterface) (*Database, error)
func (*Database) RegisterModels ¶
Click to show internal directories.
Click to hide internal directories.