package
0.6.2
Repository: https://github.com/dnote/dnote.git
Documentation: pkg.go.dev

# Functions

InitDB initializes the database.
NewCtx returns a new dnote context.
OpenDB initializes a new connection to the sqlite database.
SetupCtx populates context and returns a new context.

# Variables

DnoteDirName is the name of the directory containing dnote files.
SystemCipherKey is the encryption key.
SystemLastMaxUSN is the user's max_usn from the server at the alst sync.
SystemLastSyncAt is the timestamp of the server at the last sync.
SystemLastUpgrade is the timestamp at which the system more recently checked for an upgrade.
SystemRemoteSchema is the key for remote schema in the system table.
SystemSchema is the key for schema in the system table.
SystemSessionKey is the session key.
SystemSessionKeyExpiry is the timestamp at which the session key will expire.

# Structs

Config holds dnote configuration.
DB contains information about the current database connection.
DnoteCtx is a context holding the information of the current runtime.

# Interfaces

SQLCommon is the minimal interface required by a db connection.