File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ const (
14
14
SQLDriverLibPQ
15
15
)
16
16
17
+ const SQLDriverGoSQLDriverMySQL = "github.com/go-sql-driver/mysql"
18
+
17
19
func parseDriver (sqlPackage string ) SQLDriver {
18
20
switch sqlPackage {
19
21
case SQLPackagePGXV4 :
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ type v1PackageSettings struct {
38
38
EmitAllEnumValues bool `json:"emit_all_enum_values,omitempty" yaml:"emit_all_enum_values"`
39
39
JSONTagsCaseStyle string `json:"json_tags_case_style,omitempty" yaml:"json_tags_case_style"`
40
40
SQLPackage string `json:"sql_package" yaml:"sql_package"`
41
+ SQLDriver string `json:"sql_driver" yaml:"sql_driver"`
41
42
Overrides []Override `json:"overrides" yaml:"overrides"`
42
43
OutputBatchFileName string `json:"output_batch_file_name,omitempty" yaml:"output_batch_file_name"`
43
44
OutputDBFileName string `json:"output_db_file_name,omitempty" yaml:"output_db_file_name"`
@@ -151,6 +152,7 @@ func (c *V1GenerateSettings) Translate() Config {
151
152
Package : pkg .Name ,
152
153
Out : pkg .Path ,
153
154
SQLPackage : pkg .SQLPackage ,
155
+ SQLDriver : pkg .SQLDriver ,
154
156
Overrides : pkg .Overrides ,
155
157
JSONTagsCaseStyle : pkg .JSONTagsCaseStyle ,
156
158
OutputBatchFileName : pkg .OutputBatchFileName ,
You can’t perform that action at this time.
0 commit comments