-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
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
Dialect aware Postgres types not working for .drift files #2922
Comments
when its a drift file it generates
|
I'll take a look. But to be sure, are you importing the Dart file into the drift file? You also need to remove the |
That did seem to work.
however there was some errors in the drift log even though it did succeed:
|
That's odd. There should be a Dart file in |
Okay i will need to give you more context. I still get the error but the build_runner succeeds, this is the file you requested. branch_setup.drift.drift_module.json This is the .drift file:
The custom sql type converters I am using are:
I am still busy implementing the jsonType converter just thought if you had all the information it would help. The above example i created smaller tables to try and simulate the problem |
Thanks! The JSON looks correct to me though, and I can't reproduce the crash.
Is this the same table that you've renamed in the meantime? If not, do you still have |
I dont have the table but the same error gets produced from this table
I can try and reproduce the table if you need it ? |
I have a custom sql type that I created for Postgres to Sqlite databases. The class looks like this:
when i use it in a .dart defined context it works perfectly.
but if i try to implement this in a drift file it does not generate correctly.
The text was updated successfully, but these errors were encountered: