View Source SchemaAssertions.Database (Schema Assertions v0.2.2)

Functions for inspecting the database.

Assumes Postgres for now.

Link to this section Summary

Functions

Returns a sorted list of all the table names

Returns true if a table with the given name is in the database

Link to this section Functions

Specs

all_table_names() :: [binary()]

Returns a sorted list of all the table names

Specs

fieldset(binary()) :: Keyword.t()
Link to this function

table_exists?(table_name)

View Source

Specs

table_exists?(binary()) :: boolean()

Returns true if a table with the given name is in the database