drift icon indicating copy to clipboard operation
drift copied to clipboard

Name Clashing to use `Value`

Open dickermoshe opened this issue 1 year ago • 0 comments

Also, right now you can't import drift and flutter in the same file without tons of name clashes. Column, Table...

This wasn't an issue in the past, cuz you would mostly define your queries in another file. However, now that the database is much easier to use, people are going to use it in flutter files. They need to import drift for Value , which means they can't use Column...

Solutions:

  1. Too bad, have them use hide or as drift
  2. Re-export drift from flutter_drift and add extra classes with new names: DriftTable, DriftColumn

I think we need some sort of solution, it's really annoying

dickermoshe avatar Aug 01 '24 10:08 dickermoshe