Dependencies are used to keep track of objects that depend on other objects, and acts as a sort of m2m FK table. For example, a Card might use a Segment; a Dependency object will be used to track this dependency so appropriate actions can take place or be prevented when something changes.
Dependencies are used to keep track of objects that depend on other objects, and acts as a sort of m2m FK table. For example, a Card might use a Segment; a Dependency object will be used to track this dependency so appropriate actions can take place or be prevented when something changes.
(Dependency)
(Dependency id)
(Dependency & kvs)
Entity for 'dependency' table; instance of DependencyInstance.
Entity for 'dependency' table; instance of DependencyInstance.
Methods an entity may optionally implement to control how dependencies of an instance are captured.
Methods an entity may optionally implement to control how dependencies of an instance are captured.
(dependencies this id instance)
Provide a map of dependent models and their corresponding IDs for the given instance. Each key in the returned map must correspond to a valid Metabase entity model otherwise it will be ignored. Each value for a given key should be a collection of unique integer ids for the given model.
For example: (dependencies Card 13 {}) -> {:Segment [25 134 344] :Table [18]}
Provide a map of dependent models and their corresponding IDs for the given instance. Each key in the returned map must correspond to a valid Metabase entity model otherwise it will be ignored. Each value for a given key should be a collection of unique integer ids for the given model. For example: (dependencies Card 13 {}) -> {:Segment [25 134 344] :Table [18]}
(retrieve-dependencies entity id)
Get the list of dependencies for a given object.
Get the list of dependencies for a given object.
(update-dependencies! entity id deps)
Update the set of Dependency
objects for a given entity.
Update the set of `Dependency` objects for a given entity.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close