mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-11 21:49:13 +00:00
Documentation.
This commit is contained in:
8
stmt.go
8
stmt.go
@@ -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))
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Package fsutil implements filesystem utility functions.
|
||||
package fsutil
|
||||
|
||||
import (
|
||||
|
||||
Reference in New Issue
Block a user