lib-onyx.joplin
get-task-map-lifecycle-config
(get-task-map-lifecycle-config lifecycle event k)
Tries to get a piece of data in the task map or lifecycle
no-pending-migrations?
(no-pending-migrations? event lifecycle)
with-joplin-migrations
(with-joplin-migrations)(with-joplin-migrations joplin-environment)(with-joplin-migrations joplin-environment joplin-config)
This task bundle modifier will continously try to apply data migrations
before allowing the task to start.
- joplin-config structure can be discovered from the schema and is specific
to your database(s). It is generally of this structure
{:environments {:dev [{:db {:type :sql
:url 'jdbc-url'}
:migrator 'resources/migrators/sql'}]}}
- joplin-environment is a selector for a specific config.
The only valid selector for the above example would be ':dev'.
The datastructure is expected in this form to make interop with the joplin
command line tools simple, since they share an expected shape. More can be
read about Joplin here https://github.com/juxt/joplin.
If you are providing this config data another way, either manually or through
a seperate mechanism, you may elide either-or the joplin-config or
joplin-environment.
This does not apply data seeders.