go-dqlite
go-dqlite copied to clipboard
Add function to determine if an error is retryable
LXD (and JuJu) use a function to determine if an error returned by go-dqlite is transient, and thus retryable, or not. Ideally go-dqlite should be able to inform a user if an error is transient.
https://github.com/lxc/lxd/blob/fb36a86f0d4dd4dcdfae0568aedb2275bb8c9539/lxd/db/query/retry.go#L57