Closed ianaldrighetti closed 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).
Closing this issue. It is done and as of build #24, everything is working.
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.