Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIsolateClosed = errors.New("sql: isolate closed")
Functions ¶
func Parse ¶ added in v0.15.0
func Parse(sql string, dialect rpc.Dialect, catalog []*drivers.CatalogEntry) (*ast.SqlNodeProto, error)
Parse parses and validates a Rill SQL statement
Types ¶
type Isolate ¶
type Isolate struct {
// contains filtered or unexported fields
}
Isolate represents a SQL library (GraalVM) isolate that we can interface with using the protobuf RPCs. Isolates have thread-local state, and since Go can arbitrarily create new threads, we handle the entire isolate lifecycle in a single thread-locked event loop (see eventLoop).
func OpenIsolate ¶ added in v0.15.0
func OpenIsolate() *Isolate
OpenIsolate creates an isolate and starts its event loop
Click to show internal directories.
Click to hide internal directories.