mssql

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Package mssql provides a Microsoft SQL Server database adapter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(dsn string) (core.Source, error)

New creates a new MSSQL adapter with the given DSN. DSN format: sqlserver://username:password@host:port?database=dbname

Types

type MSSQLAdapter

type MSSQLAdapter struct {
	// contains filtered or unexported fields
}

MSSQLAdapter implements the core.Source interface for Microsoft SQL Server.

func (*MSSQLAdapter) Close

func (m *MSSQLAdapter) Close(ctx context.Context) error

func (*MSSQLAdapter) Connect

func (m *MSSQLAdapter) Connect(ctx context.Context) error

func (*MSSQLAdapter) ExecuteQuery

func (m *MSSQLAdapter) ExecuteQuery(ctx context.Context, query string, args ...any) (*core.QueryResult, error)

func (*MSSQLAdapter) GetSchema

func (m *MSSQLAdapter) GetSchema(ctx context.Context) ([]core.TableSchema, error)

func (*MSSQLAdapter) Name

func (m *MSSQLAdapter) Name() string

Jump to

Keyboard shortcuts

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