package libsql

import "github.com/tursodatabase/libsql-client-go/libsql"

Index

Functions

func Contains

func Contains[S ~[]E, E comparable](s S, v E) bool

func Index

func Index[S ~[]E, E comparable](s S, v E) int

func NewConnector

func NewConnector(dbPath string, opts ...Option) (driver.Connector, error)

Types

type Driver

type Driver struct{}

func (Driver) Open

func (d Driver) Open(dbUrl string) (driver.Conn, error)

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithAuthToken

func WithAuthToken(authToken string) Option

func WithProxy

func WithProxy(proxy string) Option

func WithSchemaDb

func WithSchemaDb(schemaDb bool) Option

func WithTls

func WithTls(tls bool) Option

Source Files

sql.go

Directories

PathSynopsis
libsql/internal
Version
v0.0.0-20240902231107-85af5b9d094d (latest)
Published
Sep 2, 2024
Platform
js/wasm
Imports
9 packages
Last checked
now

Tools for package owners.