Skip to content

feat: support Json for AnyPool #3997

@JosiahParry

Description

@JosiahParry

I have found these related issues/pull requests

None related that I can find.

Description

I am trying to utilize AnyPool to have a binary that is agnostic to either Postgres or Sqlite. The best solution I can find is to use AnyPool which uses the database type Any. However, the Json<T> struct does not implement Decode or Encode for Any but it does so for MySql Postgres and Sqlite

Prefered solution

Json implements Encode and Decode for Any so that it can be used

Is this a breaking change? Why or why not?

No it is not.

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