Skip to content

Commit

Permalink
Documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncruces committed Mar 22, 2024
1 parent b7d22e8 commit 0f9ce38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions stmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
1 change: 1 addition & 0 deletions util/fsutil/mode.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package fsutil implements filesystem utility functions.
package fsutil

import (
Expand Down

0 comments on commit 0f9ce38

Please sign in to comment.