for_sqlite

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package for_sqlite provides a sqlite implementation of the attachments database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store is a sqlite implementation of attachments.Store

func ConnNew

func ConnNew(conn *sqlite.Conn) Store

ConnNew creates a new Store instance from a sqlite connection.

func New

func New(db *sqlite_db.Db) Store

New creates a new Store instance.

func (Store) AddEntry

func (s Store) AddEntry(
	t db.Transaction, entry *attachments.Entry) error

func (Store) EntryById

func (s Store) EntryById(
	t db.Transaction, id, ownerId int64, entry *attachments.Entry) error

Jump to

Keyboard shortcuts

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