Documentation.

This commit is contained in:
Nuno Cruces
2024-03-22 00:21:00 +00:00
parent b7d22e8fbf
commit 0f9ce387b9
2 changed files with 9 additions and 0 deletions

View File

@@ -553,6 +553,14 @@ func (s *Stmt) ColumnValue(col int) Value {
}
}
// Columns populates result columns into the provided slice.
// The slice must have [Stmt.ColumnCount] length.
//
// [INTEGER] columns will be retrieved as int64 values,
// [FLOAT] as float64, [NULL] as nil,
// [TEXT] as string, and [BLOB] as []byte.
// Any []byte are owned by SQLite and may be invalidated by
// subsequent calls to [Stmt] methods.
func (s *Stmt) Columns(dest []any) error {
defer s.c.arena.mark()()
count := uint64(len(dest))

View File

@@ -1,3 +1,4 @@
// Package fsutil implements filesystem utility functions.
package fsutil
import (