package shared
import "github.com/tursodatabase/libsql-client-go/libsql/internal/http/shared"
Index ¶
- func NewResult(id, changes int64) *result
- func NewRows(result rowsProvider) driver.Rows
- type Params
- func ConvertArgs(args []driver.NamedValue) (Params, error)
- func NewParams(t paramsType) Params
- func ParseStatementAndArgs(sql string, args []driver.NamedValue) ([]string, []Params, error)
- func (p *Params) Len() int
- func (p *Params) MarshalJSON() ([]byte, error)
- func (p *Params) Named() map[string]any
- func (p *Params) Positional() []any
- func (p *Params) Type() paramsType
- type ParamsInfo
Functions ¶
func NewResult ¶
func NewResult(id, changes int64) *result
func NewRows ¶
Types ¶
type Params ¶
type Params struct {
// contains filtered or unexported fields
}
func ConvertArgs ¶
func ConvertArgs(args []driver.NamedValue) (Params, error)
func NewParams ¶
func NewParams(t paramsType) Params
func ParseStatementAndArgs ¶
func (*Params) Len ¶
func (*Params) MarshalJSON ¶
func (*Params) Named ¶
func (*Params) Positional ¶
func (*Params) Type ¶
func (p *Params) Type() paramsType
type ParamsInfo ¶
func ParseStatement ¶
func ParseStatement(sql string) ([]string, []ParamsInfo, error)
Source Files ¶
result.go rows.go statement.go
- Version
- v0.0.0-20240902231107-85af5b9d094d (latest)
- Published
- Sep 2, 2024
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 3 hours ago –
Tools for package owners.