DuckPhp\Helper\ModelHelper

简介

Model 助手类

选项

助手类公用方法

public static function IsDebug() public static function Platform() public static function trace_dump() public static function var_dump(…$args)

详解

Db DuckPhp\Ext\DBManager::Db

  1. //

DbForRead DuckPhp\Ext\DBManager::DbForRead

  1. //

DbForWrite DuckPhp\Ext\DBManager::DbForWrite

  1. //

SqlForPager($sql, $pageNo, $pageSize = 10)

  1. 分页 limte sql

SqlForCountSimply($sql)

  1. 简单的把 select ... from 替换成select count(*)as c from