bobzhang/sqlglot/executor does not have a README file
pub(all) suberror ExecuteError {
ExecuteError(String, cause~ : Error?)
}pub(all) suberror PyException {
PyException(String, String)
}pub enum Code {
Const(Value)
Name(String)
Attr(Code, String)
Subscript(Code, Code)
Call(Code, Array[Code])
Lambda(Array[String], Code)
IfExp(Code, Code, Code)
BoolOp(Bool, Array[Code])
Not(Code)
Unary(String, Code)
Binary(String, Code, Code)
Compare(Code, Array[(String, Code)])
ListDisplay(Array[Code])
TupleDisplay(Array[Code])
DictDisplay(Array[(Code, Code)])
}fn PythonExecutor::execute(self : PythonExecutor, plan : Plan, outer_scope? : Map[String?, Reader]) -> Table raisefn PythonExecutor::new(env? : Map[String, Value], tables? : Tables) -> PythonExecutor raise SqlglotErrorpub(all) enum Value {
Null
Bool(Bool)
Int(Int64)
Float(Double)
Str(String)
List(Array[Value])
Tuple(Array[Value])
Dict(Array[(Value, Value)])
Set(Array[Value])
Date(PyDate)
Time(PyTime)
DateTime(PyDateTime)
TimeDelta(PyTimeDelta)
Iter(Array[Value])
Func(PyFunc)
Module(String)
DTypeV(DType)
Readers(Map[String?, Reader])
ReaderV(Reader)
RevKey(Value)
}fn[T : IntoPy] execute(sql : T, schema? : Map[String, SchemaNode], mapping_schema? : MappingSchema, read? : String, dialect? : String, tables? : Map[String, TableData]) -> Table raisefn float_repr(d : Double) -> StringInstall
Download zipA SQL parser, transpiler and optimizer: a MoonBit port of sqlglot