Add automatic timestamps for created_at/updated_at
* Update and Insert * Add --no-auto-timestamps flag
This commit is contained in:
parent
677d45cef4
commit
96d40fcfe4
14 changed files with 201 additions and 60 deletions
13
config.go
13
config.go
|
@ -2,12 +2,13 @@ package main
|
|||
|
||||
// Config for the running of the commands
|
||||
type Config struct {
|
||||
DriverName string `toml:"driver_name"`
|
||||
PkgName string `toml:"pkg_name"`
|
||||
OutFolder string `toml:"out_folder"`
|
||||
BaseDir string `toml:"base_dir"`
|
||||
ExcludeTables []string `toml:"exclude"`
|
||||
NoHooks bool `toml:"no_hooks"`
|
||||
DriverName string `toml:"driver_name"`
|
||||
PkgName string `toml:"pkg_name"`
|
||||
OutFolder string `toml:"out_folder"`
|
||||
BaseDir string `toml:"base_dir"`
|
||||
ExcludeTables []string `toml:"exclude"`
|
||||
NoHooks bool `toml:"no_hooks"`
|
||||
NoAutoTimestamps bool `toml:"no_auto_timestamps"`
|
||||
|
||||
Postgres PostgresConfig `toml:"postgres"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue