mirror of
https://github.com/NCBM/plyngent.git
synced 2026-07-23 05:55:16 +08:00
core/cli: keep database url :memory:; default url None
Unset/empty url still maps to durable user-data chat.db. Explicit :memory: is not rewritten; CLI warns when not quiet. DatabaseConfig.url default is None; engine treats None as memory.
This commit is contained in:
@@ -2,11 +2,13 @@
|
||||
# Copy to the path shown by: plyngent config path
|
||||
# Then set access_key_or_token and adjust models.
|
||||
|
||||
# Optional. If omitted (or SQLite url is empty / ":memory:"), the CLI uses a
|
||||
# durable file under the platform user data dir (e.g. ~/.local/share/plyngent/chat.db).
|
||||
# Optional. If omitted (or SQLite url unset/empty), the CLI uses a durable file under
|
||||
# the platform user data dir (e.g. ~/.local/share/plyngent/chat.db).
|
||||
# url = ":memory:" → true in-memory SQLite (CLI warns; useful for tests).
|
||||
# [database]
|
||||
# implementation = "sqlite"
|
||||
# url = "/path/to/chat.db"
|
||||
# # url = ":memory:"
|
||||
|
||||
[agent]
|
||||
system_prompt = "You are a careful coding assistant. Prefer small, verified edits."
|
||||
|
||||
Reference in New Issue
Block a user