Skip to content

Feature: Add additional databases filter options #438

@mattboardman

Description

@mattboardman

The lease.databases field in the configuration currently only supports complete names for the db to use (e.g. users.db). If wildcard/regex's and/or environment variable interpolation were supported this would allow sharding for non-candidate nodes.

Some examples:

wildcard support for all user dbs

lease:
    databases: ["*users.db"]

regex matching for user dbs beginning with an m

lease:
    databases: ["m.*\.users.db"]

Environment variables used for rendering a database name

lease:
    databases: ["${USER_NAME}.users.db"]

Any of the above options would be really useful for cases like sharding data across multiple db files where the non-candidate node's config is only concerned with (in this example) a specific set of users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions