Help us shape the future of Go! Take the 2026 Go Developer Survey

adapter

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package adapter provides a factory for creating database adapters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSource

func NewSource(dbType string, dsn string, noLock bool, normalizeTurkish bool) (core.Source, error)

NewSource creates a new database adapter based on the specified type. Supported types: "dummy", "mssql", "postgres"/"postgresql", "rest", "graphql", "firebird" (coming soon). noLock enables READ UNCOMMITTED isolation for MSSQL sources (equivalent to WITH (NOLOCK)). normalizeTurkish enables Turkish character normalization middleware for legacy Turkish_CI_AS databases. Returns an error if the database type is unsupported or initialization fails.

Types

This section is empty.

Directories

Path Synopsis
Package dummy provides a dummy database adapter for testing purposes.
Package dummy provides a dummy database adapter for testing purposes.
Package graphql provides a GraphQL API adapter for CoreMCP.
Package graphql provides a GraphQL API adapter for CoreMCP.
Package mssql provides a Microsoft SQL Server database adapter.
Package mssql provides a Microsoft SQL Server database adapter.
Package postgres provides a PostgreSQL database adapter for CoreMCP.
Package postgres provides a PostgreSQL database adapter for CoreMCP.
Package rest provides a REST API adapter for CoreMCP.
Package rest provides a REST API adapter for CoreMCP.

Jump to

Keyboard shortcuts

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