fix: ctx init missing directory + add Initialize Database button to ContextPane
This commit is contained in:
parent
d903904d52
commit
957f4c20f6
5 changed files with 164 additions and 10 deletions
1
ctx
1
ctx
|
|
@ -17,6 +17,7 @@ DB_PATH = Path.home() / ".claude-context" / "context.db"
|
|||
|
||||
|
||||
def get_db():
|
||||
DB_PATH.parent.mkdir(parents=True, exist_ok=True)
|
||||
db = sqlite3.connect(str(DB_PATH))
|
||||
db.row_factory = sqlite3.Row
|
||||
db.execute("PRAGMA journal_mode=WAL")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue