Skip to content

More fine grained errors? #2

@fcarreiro

Description

@fcarreiro

Hi all! I got here looking for a way to uniformly handle Bookshelf (and knex) uniqueness and other constraints errors. It is something that knex is certainly missing and I like were this lib is going.

My question/comment/suggestion is: is there a plan to be more fine-grained in the handling of errors? For example, as they do in Sequelize: http://docs.sequelizejs.com/en/v3/api/errors/

Cheers!

UPDATE: I realize now that Sequelize validations are at the model level, not the DB level, if I understood correctly (more like what can be acchieved with Joi). In any case, I hope what I am referring to is clear: to uniformly parse errors triggered by uniqueness and other constraints in the DB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions