package stdlib
import "github.com/rqlite/gorqlite/stdlib"
Package stdlib provides a compatability layer from gorqlite to database/sql.
Index ¶
- type Conn
- func (c *Conn) Begin() (driver.Tx, error)
- func (c *Conn) Close() error
- func (c *Conn) Prepare(query string) (driver.Stmt, error)
- type Driver
- type Result
- type Rows
- func (r *Rows) Close() error
- func (r *Rows) Columns() []string
- func (r *Rows) Next(dest []driver.Value) error
- type Stmt
- func (s *Stmt) Close() error
- func (s *Stmt) Exec(args []driver.Value) (driver.Result, error)
- func (s *Stmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
- func (s *Stmt) NumInput() int
- func (s *Stmt) Query(args []driver.Value) (driver.Rows, error)
- func (s *Stmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)
- type Tx
Types ¶
type Conn ¶
type Conn struct { *gorqlite.Connection }
func (*Conn) Begin ¶
func (*Conn) Close ¶
func (*Conn) Prepare ¶
type Driver ¶
type Driver struct{}
func (*Driver) Open ¶
type Result ¶
type Result struct { gorqlite.WriteResult }
func (*Result) LastInsertId ¶
func (*Result) RowsAffected ¶
type Rows ¶
type Rows struct { gorqlite.QueryResult }
func (*Rows) Close ¶
func (*Rows) Columns ¶
func (*Rows) Next ¶
type Stmt ¶
func (*Stmt) Close ¶
func (*Stmt) Exec ¶
func (*Stmt) ExecContext ¶
func (*Stmt) NumInput ¶
func (*Stmt) Query ¶
func (*Stmt) QueryContext ¶
type Tx ¶
type Tx struct{}
func (*Tx) Commit ¶
func (*Tx) Rollback ¶
Source Files ¶
- Version
- v0.0.0-20250128004930-114c7828b55a (latest)
- Published
- Jan 28, 2025
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 2 hours ago –
Tools for package owners.