granitic: github.com/graniticio/granitic/facility/rdbms Index | Files

package rdbms

import "github.com/graniticio/granitic/facility/rdbms"

Package rdbms provides the RdbmsAccess facility which gives application code access to an RDBMS (SQL database).

The RdbmsAccess facility is described in detail at https://granitic.io/ref/relational-databases and the programmatic interface that applications will use for executing SQL is described in the rdbms package documentation.

The purpose of this facility is to create an rdbms.ClientManager that will be injected into your application components. In turn, the rdbms.ClientManager will be used by your application to create instances of rdbms.RDBMSClient which provide the interface for executing SQL queries and managing transactions.

Index

Package Files

builder.go decorator.go

type FacilityBuilder Uses

type FacilityBuilder struct {
    Log logging.Logger
}

FacilityBuilder creates an instance of rdbms.RDBMSClientManager that can be injected into your application components.

func (*FacilityBuilder) BuildAndRegister Uses

func (rafb *FacilityBuilder) BuildAndRegister(lm *logging.ComponentLoggerManager, ca *config.Accessor, cn *ioc.ComponentContainer) error

BuildAndRegister implements FacilityBuilder.BuildAndRegister

func (*FacilityBuilder) DependsOnFacilities Uses

func (rafb *FacilityBuilder) DependsOnFacilities() []string

DependsOnFacilities returns the other faclities that must be enabled in order to use the RdbmsAccess facility. You must enable the QueryManager facility.

func (*FacilityBuilder) FacilityName Uses

func (rafb *FacilityBuilder) FacilityName() string

FacilityName implements FacilityBuilder.FacilityName

Package rdbms imports 11 packages (graph). Updated 2019-12-03. Refresh now. Tools for package owners.