![]() ![]() Some databases may be compatible with the mysql or postgres dialect, in which case you could just use the dialect for those databases. Refer Generic Interface for details Unsupported Databases SetConnMaxLifetime sets the maximum amount of time a connection may be reused. SetMaxOpenConns sets the maximum number of open connections to the database. SetMaxIdleConns sets the maximum number of connections in the idle connection pool. GORM using database/sql to maintain connection pool sqlDB, err := db.DB()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |