Documentation
¶
Overview ¶
Package workspacedb owns per-workspace SQLite database lifecycle helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is an open per-workspace AGH database handle.
func OpenWorkspace ¶
func OpenWorkspace(ctx context.Context, workspaceRoot string, migrations []store.Migration) (*DB, error)
OpenWorkspace opens a workspace database with the default migration table.
func (*DB) WorkspaceID ¶
WorkspaceID reports the resolved workspace identity.
func (*DB) WorkspaceRoot ¶
WorkspaceRoot reports the workspace root used to open the database.
Click to show internal directories.
Click to hide internal directories.