Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

[cli] start using a local storage approach#2

Open
OutdatedVersion wants to merge 1 commit intomasterfrom
refactor_to_local_approach
Open

[cli] start using a local storage approach#2
OutdatedVersion wants to merge 1 commit intomasterfrom
refactor_to_local_approach

Conversation

@OutdatedVersion
Copy link
Copy Markdown
Owner

@OutdatedVersion OutdatedVersion commented Oct 19, 2019

This is a work in progress deal.

I have begun the work towards a local storage approach vs storing data remotely. The choice for SQLite was made to have a powerful storage solution that provides ample flexibility in the future if we were to add filters or some such.

I have begun the work towards a local storage approach vs storing data remotely.
Comment thread cli/model.go
Comment thread cli/main.go
log.Print("http response: ", string(body))
// TODO(ben): configurable database location
// database, _ := sql.Open("sqlite3", "./notes.db")
// statement, _ := database.Prepare("CREATE TABLE IF NOT EXISTS notes (id BLOB PRIMARY KEY, content TEXT, active TINYINT, created_at DATETIME);")
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wip testing, needs to be moved

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant