Documentation ¶
Index ¶
- func ToSnakeCase(str string) string
- type DbColumnGetter
- type ISyncUtils
- type SyncUtilGorm
- type SyncUtils
- func (s SyncUtils) CheckTable(entity interface{}) error
- func (s SyncUtils) CreateTable(entity interface{}) error
- func (s SyncUtils) DropTable(entity interface{}) error
- func (s SyncUtils) ForceSync(entity interface{})
- func (s SyncUtils) InteractiveSync(entity interface{})
- func (s SyncUtils) RecreateTable(entity interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToSnakeCase ¶
ToSnakeCase make camelCase into camel_case or nameWithSnakeCase into name_with_snake_case
Types ¶
type DbColumnGetter ¶
func (DbColumnGetter) GetColumns ¶
func (d DbColumnGetter) GetColumns(tableName string) ([]*sql.ColumnType, error)
type ISyncUtils ¶
type SyncUtilGorm ¶
func (SyncUtilGorm) CheckTableGorm ¶
func (s SyncUtilGorm) CheckTableGorm(entity interface{}) error
CheckTable CheckTable is exists and have columns that ready to filled with Field from struct
type SyncUtils ¶
func (SyncUtils) CheckTable ¶
CheckTable CheckTable is exists and have columns that ready to filled with Field from struct
func (SyncUtils) CreateTable ¶
CreateTable create table with columns as same as field
func (SyncUtils) InteractiveSync ¶
func (s SyncUtils) InteractiveSync(entity interface{})
func (SyncUtils) RecreateTable ¶
func (s SyncUtils) RecreateTable(entity interface{})
Click to show internal directories.
Click to hide internal directories.