#Exposing http server request and response object to an ORM

6 messages · Page 1 of 1 (latest)

crisp canyon
#

Hello, I started learning Go 3 days ago and I’ve been looking for a way to get the Req and Res objects from my echo server to Ent Orm resolver. Any help would be appreciated

plain oriole
#

sounds like a bad idea

coarse crown
#

agreed

plain oriole
#

you should not couple database access layer with http context
extract what you need from http request in http handler and pass it down to the next part

spring hedge
#

are you trying to build an API that way? you should see above this msg instead

blazing knot
#

are we talking about c# orm (object relational model) and how it triggers dbms managers who love the pure sql queries.