qor / admin

Qor Admin - Instantly create a beautiful, cross platform, configurable Admin Interface and API for managing your data in minutes.
918 stars 189 forks source link

how to use qor admin with gorm.io/gorm #251

Open hpdipto opened 3 years ago

hpdipto commented 3 years ago

When I'm trying to use qor with gorm.io/gorm, I got this error cannot use DB (type *"gorm.io/gorm".DB) as type *"github.com/jinzhu/gorm".DB in field value how can I deal with this problem?

NilsJPWerner commented 3 years ago

Yeah I think qor needs to be updated to support gorm 2. It seems all development of gorm has shifted to the new version.

raven-chen commented 3 years ago

hi @hpdipto

What specific feature do you want to use in gorm 2.0? We do have a plan to migrate qor to gorm 2.0, but haven't evaluated the impact and benefit. it would be helpful if you can show us your requirement.

hpdipto commented 3 years ago

hi @hpdipto

What specific feature do you want to use in gorm 2.0? We do have a plan to migrate qor to gorm 2.0, but haven't evaluated the impact and benefit. it would be helpful if you can show us your requirement.

Actually I can't mention very specific feature of gorm 2.0 that I want to use. But why should I incorporate an old version in my code base?

NilsJPWerner commented 3 years ago

Gorm 2 has a host of new useful features like batch insert better clause support and more. We want to move to it so we get continued support and to get access to all the other features.

KhalifaGad commented 3 years ago

any updates?

benjfield commented 3 years ago

Do we have an update on this please? Gorm 1.9 has been dead for over a year and is pinned to use a version of a postgres driver that is 14 months or so older than that.

zareef26 commented 2 years ago

Any updates?

jpmeijers commented 2 years ago

I'm trying to add Qor to an existing code base. My existing code has been ported to Gorm 2 a very long time ago. I was shocked to see Qor only supports the old version.

Gorm 2 has much better support for indexes in Postgres than the previous one, so there is no option of downgrading.

What is the status of porting Qor to Gorm 2, and is there perhaps a workaround like force casting the Db object to the correct type which we can do in the meantime?

ElegantSoft commented 2 years ago

Any updates or fork fixes this problem

WalterNyeko commented 2 years ago

Kind of hard to believe that there is no fix yet after 1 year.

fanshuai commented 7 months ago

Any updates?

UmiKami commented 1 month ago

84 years