Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
amirrezaask committed Mar 21, 2022
1 parent b560a0b commit 79faad8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ func (u User) ConfigureEntity(e *orm.EntityConfigurator) {

func main() {
// Setup ORM
err := orm.Initialize(orm.ORMConfig{LogLevel: orm.LogLevelDev}, orm.ConnectionConfig{
err := orm.Initialize(orm.ConnectionConfig{
// Name: "default", // Optional. Specify connection names if you have more than on database.
Driver: "sqlite3", // Database type. Currently supported sqlite3, mysql, mariadb, postgresql.
ConnectionString: ":memory:", // Database DSN.
DatabaseValidations: true, // Validates your database tables and each table schema
})

if err != nil {
Expand Down

0 comments on commit 79faad8

Please sign in to comment.