Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages shared sessions, keyed by session ID.
func NewManager ¶
NewManager creates a new session manager.
func (*Manager) GetOrCreate ¶
GetOrCreate returns an existing session or creates a new one.
type Session ¶
type Session struct {
ID string
Engine *engine.Engine
PreviewLimit int
// contains filtered or unexported fields
}
Session represents a DuckDB execution context.
func NewSession ¶
NewSession creates a new session with the given connector.
func (*Session) Execute ¶
func (s *Session) Execute(ctx context.Context, query string, sw *spool.StreamWriter) (*engine.QueryResult, error)
Execute runs a SQL query, streaming Arrow batches to the writer. Records are NOT accumulated in memory.
func (*Session) ExecutionCount ¶
ExecutionCount returns the current execution counter value.
func (*Session) SetPreviewLimit ¶
SetPreviewLimit updates the preview row limit.
Click to show internal directories.
Click to hide internal directories.