mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-30 19:40:52 -05:00
fixes
This commit is contained in:
@@ -162,7 +162,9 @@ func validateMinVerFunc(field reflect.StructField, depth int) error {
|
||||
}
|
||||
|
||||
yamlTag := field.Tag.Get("yaml")
|
||||
if yamlTag != "" {
|
||||
if yamlTag == "" {
|
||||
return fmt.Errorf("required tag 'yaml' missing on field '%s'", field.Name)
|
||||
} else {
|
||||
vals := strings.Split(yamlTag, ",")
|
||||
for _, val := range vals {
|
||||
if val == "omitempty" {
|
||||
|
||||
@@ -6,14 +6,14 @@ MaxQueryLenInLogs *int 0.0.0 max_logged_query_len,omitempty
|
||||
EncodeLoggedQuery *bool 0.0.0 encode_logged_query,omitempty
|
||||
BehaviorConfig sqlserver.BehaviorYAMLConfig 0.0.0 behavior
|
||||
-ReadOnly *bool 0.0.0 read_only
|
||||
-AutoCommit *bool 0.0.0
|
||||
-AutoCommit *bool 0.0.0 autocommit
|
||||
-PersistenceBehavior *string 0.0.0 persistence_behavior
|
||||
-DisableClientMultiStatements *bool 0.0.0 disable_client_multi_statements
|
||||
-DoltTransactionCommit *bool 0.0.0 dolt_transaction_commit
|
||||
-EventSchedulerStatus *string 1.17.0 event_scheduler,omitempty
|
||||
UserConfig sqlserver.UserYAMLConfig 0.0.0 user
|
||||
-Name *string 0.0.0
|
||||
-Password *string 0.0.0
|
||||
-Name *string 0.0.0 name
|
||||
-Password *string 0.0.0 password
|
||||
ListenerConfig sqlserver.ListenerYAMLConfig 0.0.0 listener
|
||||
-HostStr *string 0.0.0 host
|
||||
-PortNumber *int 0.0.0 port
|
||||
|
||||
@@ -66,7 +66,7 @@ func intPtr(n int) *int {
|
||||
// BehaviorYAMLConfig contains server configuration regarding how the server should behave
|
||||
type BehaviorYAMLConfig struct {
|
||||
ReadOnly *bool `yaml:"read_only"`
|
||||
AutoCommit *bool
|
||||
AutoCommit *bool `yaml:"autocommit"`
|
||||
// PersistenceBehavior regulates loading persisted system variable configuration.
|
||||
PersistenceBehavior *string `yaml:"persistence_behavior"`
|
||||
// Disable processing CLIENT_MULTI_STATEMENTS support on the
|
||||
@@ -85,14 +85,8 @@ type BehaviorYAMLConfig struct {
|
||||
|
||||
// UserYAMLConfig contains server configuration regarding the user account clients must use to connect
|
||||
type UserYAMLConfig struct {
|
||||
Name *string
|
||||
Password *string
|
||||
}
|
||||
|
||||
// DatabaseYAMLConfig contains information on a database that this server will provide access to
|
||||
type DatabaseYAMLConfig struct {
|
||||
Name string
|
||||
Path string
|
||||
Name *string `yaml:"name"`
|
||||
Password *string `yaml:"password"`
|
||||
}
|
||||
|
||||
// ListenerYAMLConfig contains information on the network connection that the server will open
|
||||
|
||||
Reference in New Issue
Block a user