gotosocial/vendor/github.com/ncruces/go-sqlite3/conn_iter.go

12 lines
296 B
Go
Raw Normal View History

2024-08-15 01:30:58 +01:00
//go:build (go1.23 || goexperiment.rangefunc) && !vet
package sqlite3
import "iter"
// Stmts returns an iterator for the prepared statements
// associated with the database connection.
//
// https://sqlite.org/c3ref/next_stmt.html
func (c *Conn) Stmts() iter.Seq[*Stmt] { return c.stmtsIter }