Skip to content

Commit 7d8187d

Browse files
committed
Move main to cmd sub package
1 parent 9ecb2d9 commit 7d8187d

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

README.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Db2Struct is based/inspired by the work of ChimeraCoder's gojson package
1616
## Usage
1717

1818
```BASH
19-
go get github.com/Shelnutt2/db2struct/db2struct
19+
go get github.com/Shelnutt2/db2struct/cmd/db2struct
2020
db2struct --host localhost -d test -t test_table --package myGoPackage --struct testTable -p --user testUser
2121
```
2222

@@ -45,13 +45,13 @@ type User struct {
4545
## Supported Databases
4646

4747
Currently Supported
48-
- MariaDB
49-
- MySQL
48+
- MariaDB
49+
- MySQL
5050

5151
Planned Support
52-
- PostgreSQL
53-
- Oracle
54-
- Microsoft SQL Server
52+
- PostgreSQL
53+
- Oracle
54+
- Microsoft SQL Server
5555

5656
### MariaDB/MySQL
5757

@@ -61,27 +61,27 @@ and metadata to create a usable go compatible struct type.
6161
#### Supported Datatypes
6262

6363
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
File renamed without changes.

0 commit comments

Comments
 (0)