zahir-core / grest

An instant, full-featured, and scalable REST APIs framework for Go. Designed to make rapid development easy with clean code and best performance.
MIT License
13 stars 1 forks source link

Join sample #29

Closed lismansihotang closed 3 months ago

lismansihotang commented 3 months ago

Dear tim, untuk dokumentasi atau bagaimana cara nya inner join table yah? thanks

jeffry-luqman commented 3 months ago

untuk dokumentasi nya baru sebatas yang di pkg.go.dev untuk cara inner join tabel tinggal tambahkan method GetRelation pada struct yg dijadikan model, contoh nya seperti pada model_test, disesuaikan joinType nya dari left menjadi inner

https://github.com/zahir-core/grest/blob/6c50445207c2e0e00eef29877d0dc54e76d4e501/model_test.go#L115-L119

lismansihotang commented 3 months ago

dear pak jeffry,

thanks pak, sy coba dulu. berarti sejauh ini hanya baru support inner saja ya pak?

best regards

Lisman Sihotang

On Wed, Jun 12, 2024 at 10:45 AM Jeffry Luqman @.***> wrote:

untuk dokumentasi nya baru sebatas yang di pkg.go.dev https://pkg.go.dev/grest.dev/grest untuk cara inner join tabel tinggal tambahkan method GetRelation pada struct yg dijadikan model, contoh nya seperti pada model_test, disesuaikan joinType nya dari left menjadi inner

https://github.com/zahir-core/grest/blob/6c50445207c2e0e00eef29877d0dc54e76d4e501/model_test.go#L115-L119

— Reply to this email directly, view it on GitHub https://github.com/zahir-core/grest/issues/29#issuecomment-2162047637, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWSIMGQVF62G5UIGFRDQHTZG676XAVCNFSM6AAAAABJFM7SYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRSGA2DONRTG4 . You are receiving this because you authored the thread.Message ID: @.***>

--

Lisman Tua Sihotang, S.Kom Contact No. : +6282116639965

jeffry-luqman commented 3 months ago

banyak yg bisa di support sih, yg penting paham sql dan cara kerja grest (mungkin bisa dibaca-baca dulu kodingan nya, masih blm sempet bikin dokumentasi yg ok), kita bisa berkreasi / berinovasi sesuai kebutuhan