Hi! I'm experiencing a problem with the package where because of the custom Valuer interface, the types that do implement driver.Valuer are not recognized.
For context, I'm using github.com/google/uuid type and since it does implement driver.Valuer interface I expected it to automatically convert to string, so doing something like this would just work:
func myFunc(ctx context.Context, id uuid.UUID) error {
q := pgq.Update("table").Where(pgq.Eq{"id": id})
}
Is there a reason to not use driver.Valuer interface? It's semantically the same since driver.Valuer is Value() (driver.Value, error) where driver.Value is just an alias to any.
Hi! I'm experiencing a problem with the package where because of the custom
Valuerinterface, the types that do implementdriver.Valuerare not recognized.For context, I'm using
github.com/google/uuidtype and since it does implementdriver.Valuerinterface I expected it to automatically convert to string, so doing something like this would just work:Is there a reason to not use
driver.Valuerinterface? It's semantically the same sincedriver.ValuerisValue() (driver.Value, error)wheredriver.Valueis just an alias toany.