Add more todo ideas

v4-experimental
Jack Christensen 2018-12-28 12:06:51 -06:00
parent 25f21a597c
commit 5c05f3f2ce
1 changed files with 7 additions and 1 deletions

8
v4.md
View File

@ -20,7 +20,13 @@ Potential Changes:
* Change prepared statement usage from using name as SQL text to specifically calling prepared statement (more like database/sql).
* Remove stdlib hack for RegisterDriverConfig now that database/sql supports better way
* Consider how to simplify context.Context and query cancellation support (or even remove). This logic is very complex and error prone. Perhaps connections should simply be killed on a cancelled context rather than trying to recover. Separating PostgreSQL query cancellation from context might simplify them both. Also consider that PG queries can be cancelled and connections can be terminated via SQL functions from another connection.
* Better error handling. Consider package functions that interrogate errors rather comparing to value or type. Like net.Error interface but with addition of package functions that unwrap and interrogate the error.
* Better error handling. Consider package functions that interrogate errors rather comparing to value or type. Like net.Error interface but with addition of package functions that unwrap and interrogate the error. Maybe target the Go 2 error proposal.
* Add function that extracts logger from context to conn config.
* Maybe move to zerolog style interface for logging
* Add libpq style function layer: sendquery, sendpreparedquery, getresults etc.
* Consider strongly typed row scan in style of zerolog (chained functions instead of varargs)
* Consider strongly typed query parameters in style of zerolog (chained functions instead of varargs)
* Consider buffered query select where entire result set is received and parsed successfully or call returns error
Minor Potential Changes: