Closed catfan closed 7 years ago
Awesome. I tried it and it's awesome. But it makes conflict when the table that i make a join with has a column the same as my table's column. You have to implement alias in data mapping :)
Guys, have you found any solution to the @AndreiTelteu issue? Im facing it right now and I have no idea how to deal with it :(
We currently added a new data mapping feature on develop branch here: 6ab60380.
For most case, the data construction we need from database is multi-dimensionally complex. We have to process the multidimensional array from we fetched and them output to the client.
But now, you can describe the column as map on
select()
columns argument. Medoo will automatically process the data mapping for you.The returned data will be:
What do you think about it? Leave a comment and idea is welcome.