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

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

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

Returns a sorted list of all the table names

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

table_exists?(table_name)

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

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