Skip to content

Refactor Database? #48

@ChrisSannar

Description

@ChrisSannar

Just an idea: Have the database consist of primarily 2 collections: TokenRules and RegexRule. The contained object would have this kind of schema:

{
    language: '...',
    stats: { ... },
    rules: [ ... ], // This then contains all the
    other: ...
}

That way, if we come up with new properties to add to each rule/language we don't need to continually add new collections for each one/language, we just update it accordingly.

Metadata

Metadata

Assignees

Labels

FutureSomething to be done down the line

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions