Add examples and comments

This commit is contained in:
Asdine El Hrychy
2019-10-16 22:16:38 +02:00
parent ce1f006814
commit 440fab80f0
5 changed files with 227 additions and 13 deletions

View File

@@ -29,6 +29,9 @@ var (
// ErrDuplicateRecord is returned when another record is already associated with a given key, primary key,
// or if there is a unique index violation.
ErrDuplicateRecord = errors.New("duplicate record")
// ErrResultClosed is returned when trying to close an already closed result.
ErrResultClosed = errors.New("result already closed")
)
// ParseError represents an error that occurred during parsing.