Documentation
¶
Index ¶
- Constants
- func NewNullInt32(num *int32) sql.NullInt32
- func NewNullInt64(num *int64) sql.NullInt64
- func NewNullString(str *string) sql.NullString
- func NewNullTimeFromPbTimestamp(timestamp *timestamppb.Timestamp) sql.NullTime
- func NewNullUUID(uuidStr *string) uuid.NullUUID
- type Component
- type ComponentOption
Constants ¶
View Source
const (
ComponentName = "postgresql"
)
Variables ¶
This section is empty.
Functions ¶
func NewNullInt32 ¶
func NewNullInt64 ¶
func NewNullString ¶
func NewNullString(str *string) sql.NullString
func NewNullTimeFromPbTimestamp ¶
func NewNullTimeFromPbTimestamp(timestamp *timestamppb.Timestamp) sql.NullTime
func NewNullUUID ¶
Types ¶
type Component ¶
func NewComponent ¶
func NewComponent(opts ...ComponentOption) *Component
type ComponentOption ¶
type ComponentOption func(*Component)
ComponentOption is an option to `PostgreSQLComponent`.
func WithDatabaseURL ¶
func WithDatabaseURL(databaseURL string) ComponentOption
WithDatabaseURL sets the database URL for the PostgreSQL component.
func WithLogger ¶
func WithLogger(logger *logrus.Entry) ComponentOption
WithLogger sets the logger for the PostgreSQL component.
func WithPoolSize ¶
func WithPoolSize(poolSize int) ComponentOption
WithPoolSize sets the pool size for the PostgreSQL component.
Click to show internal directories.
Click to hide internal directories.