Tom Parrott

Results 1094 comments of Tom Parrott

Sure you can use prepared statements where you feel its worth it. My point being for custom queries we shouldn't *force* it (by having the generator only support using the...

The way I understand it now its getting rather complicated to reason about how the DB generated functions are going to operate: - Generally speaking you (as the developer) have...

Thanks. It may be a tangent, but I would value being able to get this straightened out in my head as to specifically what the DB generator requires/does. I'm still...

Also I don't feel its too much of a tangent as we were originally talking about modifying the generator to aid in handwritten queries. If those handwritten queries are dynamically...

I suspect we should talk about this together in Prague, it will likely be easier.

But they do need to exist at generate time though? Right? If so then thats not really what im looking for.

> A single handwritten query: > > ```go > // A handwritten query. > var certificateObjectsWithProjectID = RegisterStmt(SELECT...) > > // go:generate mapper stmt -e certificates objects-by-Fingerprint > // go:generate...

> Can you give me an example of such a run-time query? Certainly. Say I want to load all instances using a custom filter (perhaps a series of instance IDs...

> > Great examples thank you! > > Straight away what caught my eye in the first example is, as a developer, how would I know to produce a SQL...

The documentation has now been much improved. With usage examples for common actions. And we will continue to improve it. I'll close this for now, but please do open an...