SchemaAssertions.Database (Schema Assertions v2.1.1)

View Source

Functions for inspecting the database.

Assumes Postgres for now.

Summary

Functions

Returns a sorted list of all the table names

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

Functions

all_enums()

all_table_names()

@spec all_table_names() :: [binary()]

Returns a sorted list of all the table names

fieldset(table_name)

@spec fieldset(binary()) :: Keyword.t()

table_exists?(table_name)

@spec table_exists?(binary()) :: boolean()

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