DevX86
DevX86
@body20002 I need something for complex structs like ```go type A struct { B struct { C D E `db:"F"` G H `db:"I"` J []struct { K L struct {...
@go-jet For reference, scany can't handle maps, or nested structs, only flat structs and flat slices.
@dropwhile @body20002 Hate to ping you guys but I'm in the middle of a major refactor of our database layer. As long as it's pgx native I don't mind which...
@go-jet Thanks for the response, my normal queries including server response time are 2-3x faster. (Some around 10-30% but those add up) I used a 15k rows as an initial...
Also we get some cool things like better connection pooling. I can't decide if I should wait on the ideas ahead or continue with the refactor using the odd bridge...
I guess the bridge isn't horrendous with some renaming. And changes like this for usage consistency. ```go // ExtractStruct extracts the first struct of type K from a slice of...
Here's the solution for scany implementation + works with encapsulated structs, if needed, modify your generator to include this. ```go // Tables. UseTable(func(table metadata.Table) template.TableModel { return template.DefaultTableModel(table). UseField(func(columnMetaData metadata.Column)...
Due to the issue below, a bridge is less ideal as we would have to make duplicate structs with nullable fields and some sort of `Resolve()` function with jet as...
@veqryn Yeah scany's concept of scanning just isn't built for complexity like go-jet is. I just found a solution for the hopefully meantime which isn't so bad once you migrate...
@safaci2000 Admittedly I'm not smart, are you saying the native version of pgx can be used with go-jet? They have a database/sql version and a native version which is much...