jmathai / epiphany

A micro PHP framework that's fast, easy, clean and RESTful. The framework does not do a lot of magic under the hood. It is, by design, very simple and very powerful.
https://github.com/jmathai/epiphany
Other
686 stars 139 forks source link

Add Prefix #90

Closed Steinweber closed 10 years ago

Steinweber commented 10 years ago

Hi I made a simple change, with which one can use a prefix for tables. A much-needed feature for me, because I work rarely with only one system in a database.

georules commented 10 years ago

A 'prefix' for a table is just a table name with extra characters. Why are you unable to just add this to your table names in the queries before executing them? I don't really see this as something the framework should provide, but rather something you should be handling at the application layer.

jmathai commented 10 years ago

Firstly, thanks for the pull request.

I tend to agree with @georules here. The goal of this particular framework is to do as little as needed. In this example the application layer might be the best place for this (as @georules alluded to).

Going to close this out for now.