sqlite3

package module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const DDL = "CREATE TABLE IF NOT EXISTS %s (" +
	"	`id` char(64) PRIMARY KEY," +
	"	`data` longblob NOT NULL," +
	"	`created` int NOT NULL DEFAULT '0'," +
	"	`modified` int NOT NULL DEFAULT '0'," +
	"	`expires` int NOT NULL DEFAULT '0');"

Variables

This section is empty.

Functions

func New

func New(cfg *Options) sessions.Store

func Reg

func Reg(store sessions.Store, args ...string)

func RegWithOptions

func RegWithOptions(opts *Options, args ...string) sessions.Store

Types

type Options

type Options struct {
	Path string `json:"path"`
	sqlstore.Options
}

type SQLiteStore

type SQLiteStore struct {
	*sqlstore.SQLStore
}

func NewSQLiteStore

func NewSQLiteStore(cfg *Options) (*SQLiteStore, error)

NewSQLiteStore takes the following paramaters path - path for Set-Cookie header

func NewSQLiteStoreFromConnection

func NewSQLiteStoreFromConnection(db *sql.DB, cfg *Options) (*SQLiteStore, error)

NewSQLiteStoreFromConnection .

Directories

Path Synopsis
cgo
go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL