From d41376dfbce5b5637bb0f69a4a0003619ca0a0d9 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 17 Nov 2018 20:27:20 -0600 Subject: [PATCH] Error handling ideas --- v4.md | 1 + 1 file changed, 1 insertion(+) diff --git a/v4.md b/v4.md index a941a1bb..43442ecd 100644 --- a/v4.md +++ b/v4.md @@ -20,6 +20,7 @@ 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. Minor Potential Changes: