Skip to content

Commit 79faad8

Browse files
committed
README.md
1 parent b560a0b commit 79faad8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,11 @@ func (u User) ConfigureEntity(e *orm.EntityConfigurator) {
9393

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

102103
if err != nil {

0 commit comments

Comments
 (0)