mirror of
https://github.com/taigrr/teaqlite.git
synced 2026-04-02 04:59:03 -07:00
fixup, add docs
This commit is contained in:
@@ -32,7 +32,7 @@ type (
|
||||
ExecuteQueryMsg struct{ Query string }
|
||||
)
|
||||
|
||||
// Main application model
|
||||
// Model is the main application model
|
||||
type Model struct {
|
||||
db *sql.DB
|
||||
currentView tea.Model
|
||||
@@ -41,7 +41,7 @@ type Model struct {
|
||||
err error
|
||||
}
|
||||
|
||||
// Shared data that all models need access to
|
||||
// SharedData that all models need access to
|
||||
type SharedData struct {
|
||||
DB *sql.DB
|
||||
Tables []string
|
||||
@@ -602,4 +602,5 @@ func (m *Model) getSharedData() *SharedData {
|
||||
// Fallback - create new shared data
|
||||
return NewSharedData(m.db)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user