sql

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package sql contains provides a module for interacting with SQL-based databases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct{}

Module provides a squirrel query builder via DI.

func NewModule

func NewModule() *Module

NewModule creates a new SQL query builder module.

func (*Module) GetInstance

func (m *Module) GetInstance(injector do.Injector) (*squirrel.StatementBuilderType, error)

GetInstance returns a configured squirrel statement builder backed by the injected *sql.DB.

func (*Module) Init

func (m *Module) Init(ctx context.Context) error

Init registers the query builder provider in the DI container.

func (*Module) Shutdown

func (m *Module) Shutdown(_ context.Context) error

Shutdown is a no-op for this module.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL