provider

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Overview

Package provider adapts SQL reader dependencies to Bindly providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) (locator.Provider, error)

New creates the Bindly provider for typed, DI-backed view reads.

Types

type Config

type Config struct {
	Dependencies []*sqlreader.ViewDependency
	Input        InputResolver
	SQL          *dsql.SQLComponent
	ReadCaches   map[string]map[*data.View]cache.Cache
}

Config supplies execution dependencies for independent views.

type InputResolver

type InputResolver interface {
	Resolver(target any) bindly.ValueResolver
}

InputResolver is the narrow canonical-input port needed by independent view DI. Runtime input contracts satisfy it without exposing their projection.

Jump to

Keyboard shortcuts

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