gorm icon indicating copy to clipboard operation
gorm copied to clipboard

Gorm connection from Existing SQLite connection

Open lesichkovm opened this issue 1 year ago • 1 comments
trafficstars

Describe the feature

To be able to use an already opened SQLite DB by Gorm

Motivation

The Gorm for MySQL and Postgres support existing database connections to be reused.

However none of the other databases support the same.

It should be unified accross the board.

Even probably add a special method that accepts a database/sql instance

gorm.FromDB(db *sql.DB)

Related Issues

lesichkovm avatar Jan 05 '24 07:01 lesichkovm

@jinzhu any updates on this issue?

lesichkovm avatar Feb 10 '24 07:02 lesichkovm