Skip to content

Conversation

@nbarbettini
Copy link
Contributor

Comments inline below

"description": "Configures the persistent storage system.",
"properties": {
"embedded": {
"in_memory": {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted all the changes to 1.0/schema.json since we are using 2.0 to break backwards compatibility. I think we want to keep 1.0 where it is - lmk if I'm missing something.

"db": {
"type": "string",
"description": "The database name. Required for external mode."
"oneOf": [
Copy link
Contributor Author

Choose a reason for hiding this comment

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

oneOf encodes the mutual-exclusivity that we describe in data_path.description at the schema level. So the schema will validate with either data_path or host/port/user/etc but not with both.

},
{
"type": "null",
"description": "No storage configuration is set. Uses embedded PostgreSQL with default settings."
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this because it was kinda hard to understand. Technically we allowed storage: null which meant embedded, but I think it's much clearer to just declare what you have now:

storage:
  postgres:
    data_path: "..."

@pmdroid pmdroid merged commit 64b67d1 into pascal/embedded-postgres Dec 19, 2025
1 check passed
@pmdroid pmdroid deleted the nate/embedded-postgres-tweak branch December 19, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants