Jack Christensen
Jack Christensen
It only supports trees. It works with nodes that have a parent_id. So it can only support a single parent.
Long term, I think the best case scenario would be to add a traceslog package that directly supported the new slog package instead of an adapter for tracelog. Internally, tracelog...
> @jackc If someone contributes such an adapter to this repo, would you be willing to merge it? Given that slog is part of the stdlib in Go 1.21 now...
See if branch rails-5.2-deprec-fix resolves it.
I'm sure it's possible with a bit of effort. But there is a much simpler solution. Instead of using `json_agg(foo)` use `array_to_json(array_agg(foo))`.
This behavior is undesirable, but I believe it is ultimately unavoidable unless you can give pgx some help. When using `QueryExecModeCacheStatement`, pgx knows that the desired type for `$1` is...
That's a PostgreSQL issue. Placeholders cannot be used for table names. Try this in `psql` and you will also get an error. ``` prepare s as select user_id, first, last...
pgx doesn't do any json parsing on its own. It uses the encoding/json package. If some of your fields aren't being populated I suspect you need json tags.
Sorry, it took me a while to get to this. There are a number of questions that have come up in this issue and I'll try to answer them all...
I'm not sure the best approach here either. There have been similar concerns with error messages in the connection process including the database url. AFAIK, it is idiomatic Go for...