Welcome Guest, Not a member yet? Register   Sign In
Is DB library in CI equal to ORM? why?
#1

[eluser]Unknown[/eluser]
I'm still a beginner at CI.

Is DB library in CI equal to ORM?
if not, why not?

Why DB library is not ORM?
What is the criteria to be called ORM?

sory for my bad english, thanks..
#2

[eluser]Jelmer[/eluser]
Quote:Is DB library in CI equal to ORM?
if not, why not?
It's not, it's a query builder: it helps you write queries without writing actual SQL.

Quote:Why DB library is not ORM?
That one I can't answer, but as EllisLab doesn't use an ORM in Expression Engine I suppose they prefer not to use an ORM but write everything specificly in the models.

Quote:What is the criteria to be called ORM?
I must admit I'm not entirely sure on the technical definition, but as far as I know an ORM uses objects as representations for data from the database and allows for relations between those objects. A more accurate description can probably be found on Wikipedia.
#3

[eluser]Unknown[/eluser]
Quote:It’s not, it’s a query builder: it helps you write queries without writing actual SQL.

enlightening answers friend.

but, why CI didn't implement ORM?
i'm , sure with DB library it's can be faster than use ORM.
but, if you didn't use ORM you should take boilerpate code in your app. (especially at association query)..

I have to try to create an ORM library in CI (maybe like DM), but it's only running in MySQL database(it's because technical problem. I couldn't trace name of table from which an attribute come).

if you interested to try you can download it's.
http://jan.web.id/ORMLibrary_20100127.zip
http://jan.web.id/ORM_Library_manual.pdf (indonesian version, english version progress..)

We apologize if there are less pleased. :-)
#4

[eluser]danmontgomery[/eluser]
[quote author="vcrack" date="1264794351"]
Quote:It’s not, it’s a query builder: it helps you write queries without writing actual SQL.

enlightening answers friend.

but, why CI didn't implement ORM?
i'm , sure with DB library it's can be faster than use ORM.
but, if you didn't use ORM you should take boilerpate code in your app. (especially at association query)..

I have to try to create an ORM library in CI (maybe like DM), but it's only running in MySQL database(it's because technical problem. I couldn't trace name of table from which an attribute come).

if you interested to try you can download it's.
http://jan.web.id/ORMLibrary_20100127.zip
http://jan.web.id/ORM_Library_manual.pdf (indonesian version, english version progress..)

We apologize if there are less pleased. :-)[/quote]

There are existing ORM plugins for CI. DMZ, Doctrine, etc.




Theme © iAndrew 2016 - Forum software by © MyBB