package
0.26.4
Repository: https://github.com/go-vela/server.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

FromCLIContext creates and returns a database engine from the urfave/cli context.
FromContext returns the database Interface associated with this context.
New creates and returns an engine capable of integrating with the configured database provider.
NewGormLogger creates a new Gorm logger.
NewTest creates and returns an engine that integrates with an in-memory database provider.
ToContext adds the database Interface to this context if it supports the Setter interface.
WithAddress sets the address in the database engine.
WithCompressionLevel sets the compression level in the database engine.
WithConnectionIdle sets the idle connections in the database engine.
WithConnectionLife sets the life of connections in the database engine.
WithConnectionOpen sets the open connections in the database engine.
WithContext sets the context in the database engine.
WithDriver sets the driver in the database engine.
WithEncryptionKey sets the encryption key in the database engine.
WithLogLevel sets the log level in the database engine.
WithLogShowSQL sets the log show SQL option in the database engine.
WithLogSkipNotFound sets the log skip not found option in the database engine.
WithLogSlowThreshold sets the log slow query threshold in the database engine.
WithSkipCreation sets the skip creation logic in the database engine.
WithTracing sets the shared tracing config in the database engine.

# Variables

Flags represents all supported command line interface (CLI) flags for the database.

# Structs

GormLogger is a custom logger for Gorm.

# Interfaces

Interface represents the interface for integrating with the supported database providers.
Setter defines a context that enables setting values.

# Type aliases

EngineOpt represents a configuration option to initialize the database engine.