AbacusSql.Completable behaviour (abacus_sql v2.1.1) View Source

Link to this section Summary

Callbacks

Returns a list of completion items that this schema offers.

Link to this section Types

Specs

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

Specs

schema() :: module()

Link to this section Functions

Link to this function

children(schema, context \\ [])

View Source

Specs

children(schema(), context()) :: {:ok, [Item.t()], context()}

Link to this section Callbacks

Link to this callback

completable_children(context)

View Source

Specs

completable_children(context()) :: {:ok, [Item.t()], context()}

Returns a list of completion items that this schema offers.

The passed context is a term that can be given to AbacusSql.Completion.autocomplete/2.