Documentation ¶
Overview ¶
Package infra defines dnote structure
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DnoteDirName is the name of the directory containing dnote files DnoteDirName = ".dnote" // SystemSchema is the key for schema in the system table SystemSchema = "schema" )
Functions ¶
func InitDB ¶ added in v0.4.5
InitDB initializes the database. Ideally this process must be a part of migration sequence. But it is performed seaprately because it is a prerequisite for legacy migration.
func InitSystem ¶ added in v0.4.5
InitSystem inserts system data if missing
Types ¶
type DnoteCtx ¶
type DnoteCtx struct { HomeDir string DnoteDir string APIEndpoint string Version string DB *sql.DB }
DnoteCtx is a context holding the information of the current runtime
Click to show internal directories.
Click to hide internal directories.