You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead, Dolt should drop a config.yaml file with the default values (modified as necessary for the current execution) in the same location as the database directories when sql-server is run.
The text was updated successfully, but these errors were encountered:
Same goes for config.json. It is mentioned in the docker instructions mapping host directories to docker directories but no standard template is provided anywhere.
I'd like to work on this, and would appreciate a little help before I get started.
I plan to use the defaults described in sqlServerDocs in go/cmd/dolt/commands/sqlserver/sqlserver.go. Is there a better canonical set of defaults I should be sourcing from?
I am also not sure how the options with no defined defaults should be handled. Should a comment be left in the file as a placeholder, should they not be included at all, or is there a way to explicitly set a config option to undefined/unset?
Lastly, I'm assuming by "modified as necessary for the current execution" you mean the config file should include the corresponding config options for the flags sql-server is executed with. Is this assumption correct?
The function DefaultServerConfig has the defaults for every value (and this is what gets printed by the help text).
The config file is yaml, so the "unset" type for values is usually just the empty string. But there are some types where unset has different semantics than "empty", and in these cases you should comment out the line in the YAML file.
Your other assumptions sound correct.
Let me know if you run into any difficulties or need a pointer.
This is standard practice in the database world: you get a config file with the defaults when you install the server.
https://www.postgresql.org/docs/current/config-setting.html#CONFIG-SETTING-CONFIGURATION-FILE
Dolt makes you write your own.
Instead, Dolt should drop a config.yaml file with the default values (modified as necessary for the current execution) in the same location as the database directories when
sql-server
is run.The text was updated successfully, but these errors were encountered: