-
Notifications
You must be signed in to change notification settings - Fork 0
Nate/embedded postgres tweak #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -449,63 +449,72 @@ | |
| "postgres": { | ||
| "type": "object", | ||
| "description": "PostgreSQL configuration. Use 'data_path' for embedded mode (local development) or 'host' for external mode (production).", | ||
| "properties": { | ||
| "data_path": { | ||
| "type": "string", | ||
| "description": "Enables embedded PostgreSQL mode. Data is stored at this path. Defaults to ~/.arcade/postgres-data if not specified. Mutually exclusive with 'host'." | ||
| }, | ||
| "host": { | ||
| "type": "string", | ||
| "description": "The hostname of the external PostgreSQL server. When set, connects to an external database instead of using embedded mode." | ||
| }, | ||
| "port": { | ||
| "description": "The port for the PostgreSQL server. Defaults to 5432.", | ||
| "oneOf": [ | ||
| { "type": "integer", "default": 5432 }, | ||
| { "$ref": "#/$defs/envVarPattern" }, | ||
| { "$ref": "#/$defs/filePattern" } | ||
| ] | ||
| }, | ||
| "user": { | ||
| "type": "string", | ||
| "description": "The username for the PostgreSQL connection. Required for external mode." | ||
| }, | ||
| "password": { | ||
| "type": "string", | ||
| "description": "The password for the PostgreSQL connection. Required for external mode." | ||
| }, | ||
| "db": { | ||
| "type": "string", | ||
| "description": "The database name. Required for external mode." | ||
| "oneOf": [ | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| { | ||
| "type": "object", | ||
| "properties": { | ||
| "data_path": { | ||
| "type": "string", | ||
| "description": "Enables embedded PostgreSQL mode. Data is stored at this path. Defaults to ~/.arcade/postgres-data if empty or not specified. Mutually exclusive with 'host'." | ||
| } | ||
| }, | ||
| "required": ["data_path"], | ||
| "additionalProperties": false | ||
| }, | ||
| "sslmode": { | ||
| "description": "The SSL mode for the PostgreSQL connection. Required for external mode.", | ||
| "oneOf": [ | ||
| { | ||
| { | ||
| "type": "object", | ||
| "properties": { | ||
| "host": { | ||
| "type": "string", | ||
| "enum": [ | ||
| "disable", | ||
| "allow", | ||
| "prefer", | ||
| "require", | ||
| "verify-ca", | ||
| "verify-full" | ||
| "description": "The hostname of the external PostgreSQL server. When set, connects to an external database instead of using embedded mode." | ||
| }, | ||
| "port": { | ||
| "description": "The port for the PostgreSQL server. Defaults to 5432.", | ||
| "oneOf": [ | ||
| { "type": "integer", "default": 5432 }, | ||
| { "$ref": "#/$defs/envVarPattern" }, | ||
| { "$ref": "#/$defs/filePattern" } | ||
| ] | ||
| }, | ||
| { "$ref": "#/$defs/envVarPattern" }, | ||
| { "$ref": "#/$defs/filePattern" } | ||
| ] | ||
| "user": { | ||
| "type": "string", | ||
| "description": "The username for the PostgreSQL connection. Required for external mode." | ||
| }, | ||
| "password": { | ||
| "type": "string", | ||
| "description": "The password for the PostgreSQL connection. Required for external mode." | ||
| }, | ||
| "db": { | ||
| "type": "string", | ||
| "description": "The database name. Required for external mode." | ||
| }, | ||
| "sslmode": { | ||
| "description": "The SSL mode for the PostgreSQL connection. Required for external mode.", | ||
| "oneOf": [ | ||
| { | ||
| "type": "string", | ||
| "enum": [ | ||
| "disable", | ||
| "allow", | ||
| "prefer", | ||
| "require", | ||
| "verify-ca", | ||
| "verify-full" | ||
| ] | ||
| }, | ||
| { "$ref": "#/$defs/envVarPattern" }, | ||
| { "$ref": "#/$defs/filePattern" } | ||
| ] | ||
| } | ||
| }, | ||
| "required": ["host", "port", "user", "password", "db", "sslmode"], | ||
| "additionalProperties": false | ||
| } | ||
| }, | ||
| "additionalProperties": false | ||
| ] | ||
| } | ||
| }, | ||
| "required": ["postgres"], | ||
| "additionalProperties": false | ||
| }, | ||
| { | ||
| "type": "null", | ||
| "description": "No storage configuration is set. Uses embedded PostgreSQL with default settings." | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed this because it was kinda hard to understand. Technically we allowed |
||
| } | ||
| ] | ||
| }, | ||
|
|
||
There was a problem hiding this comment.
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.jsonsince we are using2.0to break backwards compatibility. I think we want to keep 1.0 where it is - lmk if I'm missing something.