Tags: zargot/odbc
Tags
- Internal changes for Nim 1.4. - Refactor to remove includes which also involved exposing some previously internal fields. - Removed quitProcs. - Errors/info reported by function calls now displays the proc and line the error occurs. - This release no longer supports the `Time` type (use `DateTime` instead) due to an inability to convert to other formats.
* Added `asBinary` support for times. All field types now allow conv…
…ersion to `seq[byte]`.
* Added `tryData` for `SQLResults`, allowing speculatively fetching values without raising an error if the field doesn't exist.
* Added `fieldIndex`, `fields`, and `hasField` procs for `SQLResults`.
* Added millisecond and microsecond population for time fields.
Times now have microseconds and milliseconds populated and nanoseconds are appropriately truncated by default.
* Added `distributeNanoseconds` to manually invoke sub-second field population from `nanoseconds` on a `TimeInterval`.
* Added `stuffNanoseconds` to assemble the fractional part of a `TimeInterval` to nanoseconds.
* Added `odbcRawTimes` compile-time switch to avoid populating milliseconds and microseconds or truncating nanoseconds.
This leaves the entire sub-second fractional component represented in nanoseconds.
* Added tests for `data`, `tryData`, `fieldIndex`, and `listDrivers`.
* Exposed `SQLDriverAttribute`.
* Deprecated `fromField` used with SQLResults, as it now does the same work as `data`.
* `data` doesn't need `var SQLResults` any more.
* Removed the internal variable `fieldNames`, a functional duplicate of `fieldnamesIndex` in SQLResults.
* Tidied up the date time test, add option to only check times up to seconds precision.