[Tutorial] MySQL plugin ORM usage tutorial
#41

After following the tutorial i won't need to create the tables or anything just enter the mysql data base pass user ip etc and done ?
Reply
#42

Quote:
Originally Posted by AroseKhanNiazi
View Post
After following the tutorial i won't need to create the tables or anything just enter the mysql data base pass user ip etc and done ?
The table must have been created before.

Quote:
Originally Posted by AndreT
View Post
First thing that needs to be done is creating an ORM instance by calling id = orm_create(table_name[]) where the table_name array consists of your MySQL table name that you wish the ORM instance to control.
Reply
#43

Hey, I'm interested in using ORM but I have a question...

If my user data in mysql is seperated in three tables is there a way to handle all the data with orm or not?
Reply
#44

Nice tutorial!I finally learnt how these things work!
Reply
#45

Quote:
Originally Posted by Axuj
View Post
Hey, I'm interested in using ORM but I have a question...

If my user data in mysql is seperated in three tables is there a way to handle all the data with orm or not?
orm_select, orm_insert, orm_update and orm_delete work only on the table you specified when creating the ORM instance. However, you can use your own queries to fetch data and simply assign it to your registered variables through "orm_apply_cache". That means you can use the "automatic assignment of registered variables" feature, but not the "automatic query generation and execution" feature.
Reply
#46

Will it be a problem if I will have one table with ~100 columns,using the orm?I mean will everything work fine without lags and such things?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)