Xqlite.PragmaUtil (Xqlite v0.4.1)

View Source

A module with zero dependencies on the rest of the modules in this library. Its functions are useful for being invoked in module definitions of other modules.

Summary

Types

arg_type()

@type arg_type() :: :blob | :bool | :int | :list | :nothing | :real | :text

filter()

@type filter() :: (pragma() -> boolean())

pragma()

@type pragma() :: {atom(), spec()}

pragma_specs()

@type pragma_specs() :: %{required(atom()) => spec()}

spec()

@type spec() :: keyword()

Functions

filter(pragma_specs, func)

@spec filter(pragma_specs(), filter()) :: [atom()]

is_arg_type(x)

(macro)

is_filter(x)

(macro)

is_pragma(x)

(macro)

is_pragma_specs(x)

(macro)

is_spec(x)

(macro)

of_type(pragma_specs, type)

@spec of_type(pragma_specs(), arg_type()) :: [atom()]

readable?(pragma)

@spec readable?(pragma()) :: boolean()

readable_with_one_arg?(pragma)

@spec readable_with_one_arg?(pragma()) :: boolean()

readable_with_zero_args?(pragma)

@spec readable_with_zero_args?(pragma()) :: boolean()

returns_type?(pragma, type)

@spec returns_type?(pragma(), arg_type()) :: boolean()

writable?(pragma)

@spec writable?(pragma()) :: boolean()