from hql import hql
import hql
hql.search_record(String hql)
before = hql.search_record("from Project project where project.pr_id='{}'".format(id))
db_select()
.
hql.query(String hql)
before = hql.query("select project.pr_id, project.project_note from Project project where project.pr_id='{}'".format(id))
db_modify()
.
hql.modify(String hql)
hqlString="update Project project set project.project_name='{}' where project.pr_id='{}'".format(project2.rec.project_name.get_value(), project1.pr_id) hql.modify(hqlString)
hqlDelete = "delete Module m where m.id_ = '{}'".format(module.id.get_value()) result = hql.modify(hqlDelete)
hql.search_record(" from Project p where p.pr_id = '4711' " )
import hql from ppms import ppms project_record = ppms.search_record(461, ['4711'], ['uuid']) uuid = project_record.uuid.get_value() query = "SELECT project.project_name from Project project where project.id = '{uuid}'" result = hql.query(query.format(uuid=uuid)) ppms.ui_message_box(result) # [['Elektrohängebahn']]
I | Attachment | History | Size | Date | Comment |
---|---|---|---|---|---|
png | hqlsearch.png | r1 | 29.7 K | 2014-09-19 - 15:59 | hql |
png | searchRecord.png | r1 | 28.7 K | 2014-09-19 - 15:58 | searchrecod |