@@ -16,7 +16,7 @@ Db2Struct is based/inspired by the work of ChimeraCoder's gojson package
16
16
## Usage
17
17
18
18
``` BASH
19
- go get github.com/Shelnutt2/db2struct/db2struct
19
+ go get github.com/Shelnutt2/db2struct/cmd/ db2struct
20
20
db2struct --host localhost -d test -t test_table --package myGoPackage --struct testTable -p --user testUser
21
21
```
22
22
@@ -45,13 +45,13 @@ type User struct {
45
45
## Supported Databases
46
46
47
47
Currently Supported
48
- - MariaDB
49
- - MySQL
48
+ - MariaDB
49
+ - MySQL
50
50
51
51
Planned Support
52
- - PostgreSQL
53
- - Oracle
54
- - Microsoft SQL Server
52
+ - PostgreSQL
53
+ - Oracle
54
+ - Microsoft SQL Server
55
55
56
56
### MariaDB/MySQL
57
57
@@ -61,27 +61,27 @@ and metadata to create a usable go compatible struct type.
61
61
#### Supported Datatypes
62
62
63
63
Currently only a limited number of MariaDB/MySQL datatypes are supported. Initial support includes:
64
- - tinyint (sql.NullInt64 or null.Int)
65
- - int (sql.NullInt64 or null.Int)
66
- - smallint (sql.NullInt64 or null.Int)
67
- - mediumint (sql.NullInt64 or null.Int)
68
- - bigint (sql.NullInt64 or null.Int)
69
- - decimal (sql.NullFloat64 or null.Float)
70
- - float (sql.NullFloat64 or null.Float)
71
- - double (sql.NullFloat64 or null.Float)
72
- - datetime (null.Time)
73
- - time (null.Time)
74
- - date (null.Time)
75
- - timestamp (null.Time)
76
- - var (sql.String or null.String)
77
- - enum (sql.String or null.String)
78
- - varchar (sql.String or null.String)
79
- - longtext (sql.String or null.String)
80
- - mediumtext (sql.String or null.String)
81
- - text (sql.String or null.String)
82
- - tinytext (sql.String or null.String)
83
- - binary
84
- - blob
85
- - longblob
86
- - mediumblob
87
- - varbinary
64
+ - tinyint (sql.NullInt64 or null.Int)
65
+ - int (sql.NullInt64 or null.Int)
66
+ - smallint (sql.NullInt64 or null.Int)
67
+ - mediumint (sql.NullInt64 or null.Int)
68
+ - bigint (sql.NullInt64 or null.Int)
69
+ - decimal (sql.NullFloat64 or null.Float)
70
+ - float (sql.NullFloat64 or null.Float)
71
+ - double (sql.NullFloat64 or null.Float)
72
+ - datetime (null.Time)
73
+ - time (null.Time)
74
+ - date (null.Time)
75
+ - timestamp (null.Time)
76
+ - var (sql.String or null.String)
77
+ - enum (sql.String or null.String)
78
+ - varchar (sql.String or null.String)
79
+ - longtext (sql.String or null.String)
80
+ - mediumtext (sql.String or null.String)
81
+ - text (sql.String or null.String)
82
+ - tinytext (sql.String or null.String)
83
+ - binary
84
+ - blob
85
+ - longblob
86
+ - mediumblob
87
+ - varbinary
0 commit comments