You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Certain data type are not interpreted the same way in between different drivers.
The idea would be to:
type assert the input values with an interface like interface { XxxValue() (driver.Value, error) }
type assert the scanned values with an interface like interface { ScanXxx(interface{}) error }
It would bring two advantages:
1 - Allow a driver agnostic usage of Scanner/Valuer data types
2 - Use driver optimisation for certain data types (i.e. hstore in postgres etc...)
Acceptance Criteria
Implement this semantic over backend/postgres
Implement this semantic over backend/sqlite3
The text was updated successfully, but these errors were encountered:
Description
Certain data type are not interpreted the same way in between different drivers.
The idea would be to:
interface { XxxValue() (driver.Value, error) }
interface { ScanXxx(interface{}) error }
It would bring two advantages:
1 - Allow a driver agnostic usage of Scanner/Valuer data types
2 - Use driver optimisation for certain data types (i.e. hstore in postgres etc...)
Acceptance Criteria
backend/postgres
backend/sqlite3
The text was updated successfully, but these errors were encountered: