Properties

$pdo

$pdo : 

Type

$type

$type : 

Type

$prefix

$prefix : 

Type

$statement

$statement : 

Type

$dsn

$dsn : 

Type

$logs

$logs : 

Type

$logging

$logging : 

Type

$debug_mode

$debug_mode : 

Type

$guid

$guid : 

Type

Methods

__construct()

__construct(  $Config = '') 

初始化模型构建

Parameters

$Config

query()

query(  $query,   $map = array()) 

Parameters

$query
$map

exec()

exec(  $query,   $map = array()) 

Parameters

$query
$map

raw()

raw(  $string,   $map = array()) 

Parameters

$string
$map

quote()

quote(  $string) 

Parameters

$string

select()

select(  $table,   $join,   $columns = null,   $where = null) 

Parameters

$table
$join
$columns
$where

insert()

insert(  $table,   $datas) 

Parameters

$table
$datas

update()

update(  $table,   $data,   $where = null) 

Parameters

$table
$data
$where

delete()

delete(  $table,   $where) 

Parameters

$table
$where

replace()

replace(  $table,   $columns,   $where = null) 

Parameters

$table
$columns
$where

get()

get(  $table,   $join = null,   $columns = null,   $where = null) 

Parameters

$table
$join
$columns
$where

has()

has(  $table,   $join,   $where = null) 

Parameters

$table
$join
$where

rand()

rand(  $table,   $join = null,   $columns = null,   $where = null) 

Parameters

$table
$join
$columns
$where

count()

count(  $table,   $join = null,   $column = null,   $where = null) 

Parameters

$table
$join
$column
$where

avg()

avg(  $table,   $join,   $column = null,   $where = null) 

Parameters

$table
$join
$column
$where

max()

max(  $table,   $join,   $column = null,   $where = null) 

Parameters

$table
$join
$column
$where

min()

min(  $table,   $join,   $column = null,   $where = null) 

Parameters

$table
$join
$column
$where

sum()

sum(  $table,   $join,   $column = null,   $where = null) 

Parameters

$table
$join
$column
$where

action()

action(  $actions) 

Parameters

$actions

id()

id() 

debug()

debug() 

error()

error() 

last()

last() 

log()

log() 

info()

info() 

generate()

generate(  $query,   $map) 

Parameters

$query
$map

isRaw()

isRaw(  $object) 

Parameters

$object

buildRaw()

buildRaw(  $raw,   $map) 

Parameters

$raw
$map

tableQuote()

tableQuote(  $table) 

Parameters

$table

mapKey()

mapKey() 

typeMap()

typeMap(  $value,   $type) 

Parameters

$value
$type

columnQuote()

columnQuote(  $string) 

Parameters

$string

columnPush()

columnPush(  $columns,   $map) 

Parameters

$columns
$map

arrayQuote()

arrayQuote(  $array) 

Parameters

$array

innerConjunct()

innerConjunct(  $data,   $map,   $conjunctor,   $outer_conjunctor) 

Parameters

$data
$map
$conjunctor
$outer_conjunctor

dataImplode()

dataImplode(  $data,   $map,   $conjunctor) 

Parameters

$data
$map
$conjunctor

whereClause()

whereClause(  $where,   $map) 

Parameters

$where
$map

selectContext()

selectContext(  $table,   $map,   $join,   $columns = null,   $where = null,   $column_fn = null) 

Parameters

$table
$map
$join
$columns
$where
$column_fn

columnMap()

columnMap(  $columns,   $stack) 

Parameters

$columns
$stack

dataMap()

dataMap(  $data,   $columns,   $column_map,   $stack) 

Parameters

$data
$columns
$column_map
$stack

aggregate()

aggregate(  $type,   $table,   $join = null,   $column = null,   $where = null) 

Parameters

$type
$table
$join
$column
$where