Write new driver
GORM provides official support for sqlite
, mysql
, postgres
, sqlserver
.
Some databases may be compatible with the mysql
or postgres
dialect, in which case you could just use the dialect for those databases.
For others, you can create a new driver, it needs to implement the dialect interface.
type Dialector interface { |
Checkout the MySQL Driver as example