qor icon indicating copy to clipboard operation
qor copied to clipboard

Discard the gorm database

Open themoonstone opened this issue 8 years ago • 4 comments

If I do not want to use gorm, just want to use qor, by calling api way to the data CRUD operation, how should we do? It is currently found that if you do not call "Admin: = admin.New (& qor.Config {})", do not add DB configuration will lead to panic

themoonstone avatar Oct 31 '17 06:10 themoonstone

If you want to use Qor Admin, You have to pass DB instance(you can have a global instance for whole application) on which Qor provides you with the plug and play admin. Something like this .... // Initalization Admin := admin.New(&admin.AdminConfig{DB: db.DB})

aniruddha-mmt-zz avatar Jun 27 '18 09:06 aniruddha-mmt-zz

I don't think it is the case that QOR Admin needs GORM to operate; it does, however, need a handle on the DB instance as mentioned above.

thanateros avatar Jul 11 '18 19:07 thanateros

You might also want to check out the NoSQL issue.

cryptix avatar Jul 12 '18 06:07 cryptix

As I have understood till now, Just by replacing these 4 functions, we would be able to change the data storage and retrieval. But Ideally shouldn't it be done by porting QOR itself with such data base. Is there any possibility to use the GORM with say google DataStore which is a flat database. How would db.AutoMigrate() work...

sachinpuranik avatar Aug 13 '18 15:08 sachinpuranik