Oliver Bassett

Results 5 comments of Oliver Bassett

I was just going through this aswell! If the model as table=True then validations are disabled, and it assume SQLalchemy will pick up any issues. It then basically drops those...

Ok so I have been looking at work-arounds for this - as I don't want to double up on models just to do validation. If the model is defined with...

see #65 - it has the how to do it. Basically you specify something like - `email: EmailStr = Field(sa_column=Column("email", VARCHAR, unique=True)) the = Field(sa_column=Column("username", VARCHAR, unique=True))`

I asked tiangolo on twitter about AsyncSession ![2021-08-30 10 09 31](https://user-images.githubusercontent.com/41191289/131272402-9ab00559-c636-43f8-a1f6-ecd9eac63607.jpg) It isn't tested or documented and he think some things (e.g. autocompletions) might not work perfectly yet... so I...

@ahothan - You could try to set the KUBECONFIG environment variable on the line with execution of the command as a workaround- depending on how it gets called. e.g. `KUBECONFIG=path/to/kubeconfig...