mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 20:17:42 +00:00
add unsafeColumnAt procs, that return unsafe cstring from InstantRow (#11647)
This commit is contained in:
@@ -359,6 +359,14 @@ proc `[]`*(row: InstantRow, col: int32): string {.inline.} =
|
||||
## example code
|
||||
$column_text(row, col)
|
||||
|
||||
proc unsafeColumnAt*(row: InstantRow, index: int32): cstring {.inline.} =
|
||||
## Returns cstring for given column of the row.
|
||||
##
|
||||
## See also:
|
||||
## * `instantRows iterator <#instantRows.i,DbConn,SqlQuery,varargs[string,]>`_
|
||||
## example code
|
||||
column_text(row, index)
|
||||
|
||||
proc len*(row: InstantRow): int32 {.inline.} =
|
||||
## Returns number of columns in a row.
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user