- GINO version: 1.0.1
- Python version: 3.8
- asyncpg version: 0.21
- PostgreSQL version: 12.4
Description
Model.create() does not seem to work with sqlalchemy.func object.
What I Did
Currently I make use of crypt() and gen_salt() from pgcrypto extension to generate password hash.
What I want to do is to create a user record as follow:
new_user = await User.create(email="[email protected]", password=func.crypt(pass_val, func.gen_salt('bf', 7)), **data)
Is my understanding of Model.create usage wrong or it's a bug, or a feature doesn't support yet?