InterviewSolution
| 1. |
What Are The Crud Methods Of Web2py? |
|
Answer» Web2fy crud methods are : Methods Description crud.tables() It RETURNS a LIST of tables which is defined in the database. crud.create(db.tablename) It returns a create form for the table tablename. crud.read(db.tablename, ID) It returns a read-only form for tablename and record id. crud.delete(db.tablename, id) It is USED to deletes the record crud.select(db.tablename, query) It returns a list of records SELECTED from the table crud.search(db.tablename) Returns a tuple (form, records) where form is a search form Web2fy crud methods are : Methods Description crud.tables() It returns a list of tables which is defined in the database. crud.create(db.tablename) It returns a create form for the table tablename. crud.read(db.tablename, id) It returns a read-only form for tablename and record id. crud.delete(db.tablename, id) It is used to deletes the record crud.select(db.tablename, query) It returns a list of records selected from the table crud.search(db.tablename) Returns a tuple (form, records) where form is a search form |
|