Skip to content

Custom database connection within a seeder #200

@dotJoel

Description

@dotJoel

https://lucid.adonisjs.com/docs/seeders#customizing-database-connection states that this.connection can be used to set the connection for the model to use during seeding.

It seems that this is not the case.
I would expect src/seeders/base_seeder.ts to have the property, if it was supported.

It is possible to use this.client.connectionName, but I don't know if this is a documentation issue or an implementation issue.

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