Module {laminr} | R Documentation |
A LaminDB module containing one or more registries.
name
(character(1)
)
Get the name of the module.
new()
Creates an instance of this R6 class. This class should not be instantiated directly,
but rather by connecting to a LaminDB instance using the connect()
function.
Module$new(instance, api, module_name, module_schema)
instance
The instance the module belongs to.
api
The API for the instance.
module_name
The name of the module.
module_schema
The schema of the module.
get_registries()
Get the registries in the module.
Module$get_registries()
A list of Registry objects.
get_registry()
Get a registry by name.
Module$get_registry(registry_name)
registry_name
The name of the registry.
A Registry object.
get_registry_names()
Get the names of the registries in the module. E.g. c("User", "Artifact")
.
Module$get_registry_names()
A character vector of registry names.
print()
Print a Module
Module$print(style = TRUE)
style
Logical, whether the output is styled using ANSI codes.
to_string()
Create a string representation of a Module
Module$to_string(style = FALSE)
style
Logical, whether the output is styled using ANSI codes
A cli::cli_ansi_string
if style = TRUE
or a character vector