RobertCraigie / prisma-client-py

Prisma Client Python is an auto-generated and fully type-safe database client designed for ease of use
https://prisma-client-py.readthedocs.io
Apache License 2.0
1.85k stars 81 forks source link

Support generating Enums inherited from fastenum #973

Open tyteen4a03 opened 3 months ago

tyteen4a03 commented 3 months ago

Problem

fastenum is a 3rd party package that has an implementation of Enums that is 3x faster than traditional Enums, which is crucial for high-performance Python database applications.

Suggested solution

Allow the Prisma generator to generate Enums that inherit from fastenum, as an alternative to the built-in Enum class.