add unsafeColumnAt procs, that return unsafe cstring from InstantRow (#11647)

This commit is contained in:
Huy
2019-07-10 19:56:09 +07:00
committed by ringabout
parent ec08afd847
commit 4f663a104e

View File

@@ -286,6 +286,10 @@ proc `[]`*(row: InstantRow, col: int): string {.inline.} =
## Returns text for given column of the row.
$row.row[col]
proc unsafeColumnAt*(row: InstantRow, index: int): cstring {.inline.} =
## Return cstring of given column of the row
row.row[index]
proc len*(row: InstantRow): int {.inline.} =
## Returns number of columns in the row.
row.len