Skip to content

feat: expose database adapter #3631

@Mw3y

Description

@Mw3y

Is your feature request related to a problem? Please describe

Custom transformers are currently very limited for complex cases where some data needs to be accessed multiple time accross startups.
In my use case, when LaTeX files that are included in the LaTeX main file are parsed (outside of the main file, to create a page), they need to access the main file data.

I also would like to store LaTeX specific metadata in the database.

Describe the solution you'd like

Being able to access the database adapter would be nice, e.g.: import { getLocalDatabase } from '@nuxt/content/utils/database'

Describe alternatives you've considered

Use nuxt's builtin storage systems, but this seems redundant and adds complexity (since transformers run in different contexts).

Additional context

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions