ThinkJs2.0开发手册APImodel
上一篇:rest controller
下一篇:model.mongo
model
- 属性
- model.pk
- model.name
- model.tablePrefix
- model.tableName
- model.fields
- model.indexes
- model.config
- model._db
- model._data
- model._options
- 方法
- model.model(name, options, module)
- model.getTablePrefix()
- model.getConfigKey()
- model.db()
- model.getModelName()
- model.getTableName()
- model.cache(key, timeout)
- model.limit(offset, length)
- model.page(page, listRows)
- model.where(where)
- model.field(field)
- model.fieldReverse(field)
- model.table(table, hasPrefix)
- model.union(union, all)
- model.join(join)
- model.order(order)
- model.alias(tableAlias)
- model.having(having)
- model.group(group)
- model.distinct(distinct)
- model.explain(explain)
- model.optionsFilter(options)
- model.dataFilter(data)
- model.beforeAdd(data)
- model.afterAdd(data)
- model.afterDelete(data)
- model.beforeUpdate(data)
- model.afterUpdate(data)
- model.afterFind(data)
- model.afterSelect(data)
- model.data(data)
- model.options(options)
- model.close()
- model.getTableFields(table)
- model.getLastSql()
- model.buildSql()
- model.parseOptions(oriOpts, extraOptions)
- model.getPk()
- model.parseType(field, value)
- model.parseData(data)
- model.add(data, options, replace)
- model.thenAdd(data, where)
- model.addMany(dataList, options, replace)
- model.delete(options)
- model.update(data, options)
- updateMany(dataList, options)
- model.increment(field, step)
- model.decrement(field, step)
- model.find(options)
- model.select(options)
- model.countSelect(options, pageFlag)
- model.getField(field, one)
- model.count(field)
- model.sum(field)
- model.min(field)
- model.max(field)
- model.avg(field)
- model.query(...args)
- model.execute(...args)
- model.parseSql(sql, ...args)
- model.startTrans()
- model.commit()
- model.rollback()
- model.transaction(fn)
上一篇:rest controller
下一篇:model.mongo