sqlserver

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package sqlserver is the SQL Server direct engine (#81, PR 1): Baleia runs SQL on a SQL Server connection itself, without Trino. A session is one dedicated pool connection; each batch streams as Arrow, mapped from the driver's column types. Every dial goes through connections.Dialer.

Index

Constants

View Source
const Kind = "sqlserver"

Kind is the registered engine kind.

Variables

This section is empty.

Functions

func Spec

Spec is the kind's entry for a queryengine.Registry (#364).

Types

type Engine

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

Engine is a SQL Server instance reached directly.

func (*Engine) Cancel

func (e *Engine) Cancel(ctx context.Context, h queryengine.QueryHandle) error

Cancel kills a running statement with KILL <spid> when the connection asserts the ALTER ANY CONNECTION permission (cancel_with_kill); otherwise SQL Server can only be cancelled in-process, through the statement's context.

func (*Engine) Capabilities

func (e *Engine) Capabilities() queryengine.Capabilities

Capabilities of SQL Server in v1.

func (*Engine) Class

func (e *Engine) Class() queryengine.Class

func (*Engine) Close

func (e *Engine) Close() error

func (*Engine) Dialect

func (e *Engine) Dialect() queryengine.Dialect

func (*Engine) ID

func (e *Engine) ID() string

func (*Engine) Introspector

func (e *Engine) Introspector() queryengine.Introspector

func (*Engine) Kind

func (e *Engine) Kind() string

func (*Engine) OpenSession

func (e *Engine) OpenSession(ctx context.Context, spec queryengine.SessionSpec) (queryengine.Session, error)

func (*Engine) Ping

func (e *Engine) Ping(ctx context.Context) error

Ping fails while the server is unreachable.

func (*Engine) Version

func (e *Engine) Version(ctx context.Context) (string, error)

Version reports the server version.

Jump to

Keyboard shortcuts

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