模型
模型使用方法
模型方法
table($table_name)
dbconfig($db_config_name)
cache($expire)
select($field)
field($field)
limit($offset, $limit = 0)
set($data, $replacement = array())
data($data, $replacement = array())
where($where, $replacement = array())
leftjoin($join_string)
rightjoin($join_string)
orderby(string $orderby)
groupby(string $groupby)
having(string $having)
int affected_rows()
int insert_id()
query($sql, $replacement = array())
mixed find()
mixed findAll()
mixed findObj()
mixed findObjs()
array findPage() // 返回:array('data'=>[], 'data_count'=>0)
int count()
bool delete(bool $f)
int update(bool $f)
int insert()
int insert_update($update_string = '')
int insert_replace()
trans_start()
trans_commit()
trans_rollback()
escape_string($str)
Last updated