ostinelli / gin

A LUA fast, low-latency, low-memory footprint, web JSON-API framework with Test Driven Development helpers and patterns.
MIT License
238 stars 35 forks source link

change primary key field #15

Closed CriztianiX closed 9 years ago

CriztianiX commented 9 years ago

Hello... i have the issues what my db don't have a primary key called id.... theirs name are.. "brand_id", "city_id", etc.... how i can specify it?

ostinelli commented 9 years ago

You currently can't. Added to the enhancement requests.

CriztianiX commented 9 years ago

oh good... i wait for this!

istr commented 9 years ago

You may want to have a look at my fork. I implemented {tablename}_id or id logic there. I did not yet manage to put it through proper qa (test suites etc), however. Will send a pull request if this is done.

ostinelli commented 9 years ago

Thank you, will wait for the pull request then.