The dm class wraps dplyr::src and adds a description of table relationships
inspired by datamodelr, of which it also borrows code.
dm() coerces its inputs. If called without arguments, an empty dm object is created.
new_dm() only checks if the inputs are of the correct class.
If called without arguments, an empty dm object is created.
validate_dm() checks consistency between the dplyr source
and the datamodelr based specification of table relationships.
This function is currently a no-op.
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