The dm class holds a list of tables and their relationships.
It is inspired by datamodelr,
and extends the idea by offering operations to access the data in the tables.
dm() creates a dm object from one or multiple tbl objects
(tibbles or lazy data objects).
dm_from_src() creates a dm from some or all tables in a src
(a database or an environment).
new_dm() doesn't perform any checks on the input.
You may need to double-check the returned object with validate_dm().
All constructors create an empty dm if called without arguments.
validate_dm() checks the internal consistency of a dm object.
cdm_get_src() returns the dplyr source component of a dm
object.
cdm_get_con() returns the connection object (con-part of dplyr source component) of a dm
object.
cdm_get_tables() returns a named list with dplyr tbl objects
of a dm object.
The filter expressions are NOT evaluated at this stage.
To get the filtered tables, use tbl.dm()
cdm_get_filter() returns the filter component of a dm
object, the set filter expressions.
is_dm() returns TRUE if the input is of class dm.
as_dm() coerces objects to the dm class