We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to be able to make a ByteArray field for my projects.
For example, i would like to have the BYTEA Type in ORM. Eg:
import orm ... class Example(orm.Model): tablename = "example" registry = metadata fields = { "user_id": orm.BigInteger(primary_key=True), "example_bytes": orm.ByteArray() }
And when i do for example,
field_ex = Example # in async func data = await field_ex.objects.get(user_id=1) return data.example_bytes # this would return python bytes
I considered using raw asyncpg which i am, but i would like the bytearray field in ORM so i can use it.
The text was updated successfully, but these errors were encountered:
@aminalaee What do you think?
Sorry, something went wrong.
Maybe we should use a more generic field type for this. Something like SQLAlchemy LargeBinary.
This will behave differently for each database, and make it easier since we rely on SQLAlchemy core.
And maybe a BinaryField for typesystem too ?
No branches or pull requests
Checklist
Is your feature related to a problem? Please describe.
I want to be able to make a ByteArray field for my projects.
Describe the solution you would like.
For example, i would like to have the BYTEA Type in ORM.
Eg:
And when i do for example,
Describe alternatives you considered
I considered using raw asyncpg which i am, but i would like the bytearray field in ORM so i can use it.
Additional context
The text was updated successfully, but these errors were encountered: