ianaldrighetti / queryer

A simple, easy to use PHP database abstraction layer.
Other
0 stars 0 forks source link

Individual Query classes for SELECT, UPDATE, DELETE, INSERT/REPLACE #5

Closed ianaldrighetti closed 10 years ago

ianaldrighetti commented 10 years ago

The Query class should be updated to return different classes depending upon the type of query being built. For example, when Query::create is invoked with SELECT an instance of QuerySelect should be returned.

This way each type of query will only have the methods that are relevant to the query type.

ianaldrighetti commented 10 years ago

Beginning work on this, already some shells of the query classes in v1.1 branch.

I'm adding a native query class as well, this will still allow variables to be replaced. Doing this for possible ALTER TABLE commands or something like that. Since those commands vary greatly across different databases, it doesn't seem like a good idea to make an Alter query. Though I might add a basic one (such as adding/dropping columns/indexes).

ianaldrighetti commented 10 years ago

Closing this issue. It is done and as of build #24, everything is working.