(dialect, connection string)
| 131 | } |
| 132 | |
| 133 | func createDirectoryIfSqlite(dialect, connection string) { |
| 134 | if dialect == "sqlite3" { |
| 135 | if _, err := os.Stat(filepath.Dir(connection)); os.IsNotExist(err) { |
| 136 | if err := mkdirAll(filepath.Dir(connection), 0o777); err != nil { |
| 137 | panic(err) |
| 138 | } |
| 139 | } |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | // GormDatabase is a wrapper for the gorm framework. |
| 144 | type GormDatabase struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…