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
- func Spec(dl queryengine.Dialect) queryengine.KindSpec
- type Engine
- func (e *Engine) Cancel(ctx context.Context, h queryengine.QueryHandle) error
- func (e *Engine) Capabilities() queryengine.Capabilities
- func (e *Engine) Class() queryengine.Class
- func (e *Engine) Close() error
- func (e *Engine) Dialect() queryengine.Dialect
- func (e *Engine) ID() string
- func (e *Engine) Introspector() queryengine.Introspector
- func (e *Engine) Kind() string
- func (e *Engine) OpenSession(ctx context.Context, spec queryengine.SessionSpec) (queryengine.Session, error)
- func (e *Engine) Ping(ctx context.Context) error
- func (e *Engine) Version(ctx context.Context) (string, error)
Constants ¶
const Kind = "sqlserver"
Kind is the registered engine kind.
Variables ¶
This section is empty.
Functions ¶
func Spec ¶
func Spec(dl queryengine.Dialect) queryengine.KindSpec
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) Dialect ¶
func (e *Engine) Dialect() queryengine.Dialect
func (*Engine) Introspector ¶
func (e *Engine) Introspector() queryengine.Introspector
func (*Engine) OpenSession ¶
func (e *Engine) OpenSession(ctx context.Context, spec queryengine.SessionSpec) (queryengine.Session, error)