AbacusSql.Completion (abacus_sql v2.0.0) View Source

Link to this section Summary

Link to this section Types

Specs

context() :: [{atom(), any()}]

Specs

schema() :: module() | {module(), context()}

Link to this section Functions

Link to this function

autocomplete(code, root_schema, context \\ [])

View Source

Specs

autocomplete(binary(), module(), any()) ::
  {:ok, [AbacusSql.Completion.Item.t()]} | {:error, any()}
Link to this function

extract_schema_context(schema, context)

View Source

Specs

extract_schema_context(schema(), context()) :: {module(), context()}
Link to this function

find_single_result_in_schema(schema, variable, context)

View Source

Specs

find_single_result_in_schema(schema(), any(), context()) ::
  {:error, any()} | {:ok, module(), context()}