A Session object is the main interface to the spannerlog engine. It is used to parse, check semantics, plan and execute queries. It allows importing data and callbacks to the Spannerlog engine and exporting data from the engine back to python.
Type
Default
Details
register_stdlib
bool
True
if True, registers the standard library of IEs and AGGs
Takes a string of spannerlog code, and executes it, returning the value of the last statement in the code string. All statements that are not queries, return None.
Type
Default
Details
code
str
the spannerlog code to execute
display_results
bool
False
if True, displays the results of the query to screen
draw_query
bool
False
if True, draws the query graph of queries to screen
plan_query
bool
False
if True, if last statement is a query, plans the query and returns the query graph and root node.
return_statements_meta
bool
False
if True, returns both the return value and the statements meta data, used internally.