Welcome Guest, Not a member yet? Register   Sign In
Fetching all rows in database table - the OOP way?
#4

[eluser]adamp1[/eluser]
The way you mention sounds very like ORM. Basicly objects represent rows in the database. Now of course this can mean combining rows from different tables (linked by relations).

There are some in the Ignited code part of the forum, but the downside is they can be resource heavy.

The other way is custom SQL code to get what you want, in the form you want. Now this is good for large amounts of data since you won't be creating a load of objects you won't maybe use, but it will mean you may re-write the same SQL code (in which case you may need to refacto things)


Messages In This Thread
Fetching all rows in database table - the OOP way? - by El Forum - 08-13-2009, 07:11 AM
Fetching all rows in database table - the OOP way? - by El Forum - 08-13-2009, 07:21 AM
Fetching all rows in database table - the OOP way? - by El Forum - 08-13-2009, 07:51 AM
Fetching all rows in database table - the OOP way? - by El Forum - 08-13-2009, 09:03 AM
Fetching all rows in database table - the OOP way? - by El Forum - 08-13-2009, 09:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB