fastdb

package module
v0.0.0-...-776b25c Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Overview

The fastdb package creates a pair of sqlite3 clients which are optimised for performance: a read-only client which supports parallel operations, and a read-write client which only supports one write at a time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(filename string) (*rw, error)

Open creates a FastDB wrapper around the sqlite3 database located at filename. If there is a problem opening either of the underlying clients, that error is returned.

Types

type FastDB

type FastDB interface {
	Close() error
	Reader() *sql.DB
	Writer() *sql.DB
}

type Time

type Time int64

Time is used to store timestamps as INT in SQLite

func (*Time) Scan

func (t *Time) Scan(val any) (err error)

func (*Time) Value

func (t *Time) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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