database

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSchema

func CreateSchema(sdb *sql.DB)

func EnumerateAll added in v0.0.5

func EnumerateAll(testing bool, db *badger.DB, c *chan EntryHolder)

func EnumeratePosts

func EnumeratePosts(db *badger.DB, c *chan *lib.PostEntry)

func EnumerateProfiles added in v0.0.5

func EnumerateProfiles(db *badger.DB, c *chan *lib.ProfileEntry)

func InsertDiamondSqlite added in v0.0.6

func InsertDiamondSqlite(sdb *sql.DB, de *lib.DiamondEntry)

func InsertFollowee added in v0.0.5

func InsertFollowee(sdb *sql.DB, followee, follower string)

func InsertPostSqlite

func InsertPostSqlite(sdb *sql.DB, post *lib.PostEntry)

func InsertProfileSqlite added in v0.0.5

func InsertProfileSqlite(db *sql.DB, profile *lib.ProfileEntry)

func LookupUsername

func LookupUsername(db *badger.DB, pkid []byte) string

func OpenSqliteDB

func OpenSqliteDB() *sql.DB

Types

type EntryHolder added in v0.0.5

type EntryHolder struct {
	Flavor   string
	Thing    interface{}
	Follower []byte
	Followed []byte
}

Jump to

Keyboard shortcuts

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