package
Version:
v0.2.3-test
Opens a new window with list of versions in this module.
Published: Dec 6, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
CreateTable creates the table that will persist the peers
NewDB creates a sqlite3 DB in the specified path
WithDB is a DBOption that lets you use a sqlite3 DBStore.
Queries are the sqlite queries for a given table.
NewQueries creates a new SQLite set of queries for the passed table
Delete returns the query for deleting a row.
Exists returns the query for determining if a row exists.
Get returns the query for getting a row.
GetSize returns the query for determining the size of a value.
Limit returns the query fragment for limiting results.
Offset returns the query fragment for returning rows from a given offset.
Prefix returns the query fragment for getting a rows with a key prefix.
Put returns the query for putting a row.
Query returns the query for getting multiple rows.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.