Files
kiri-core/Database/IOrm.php
T
2020-08-31 12:38:32 +08:00

37 lines
541 B
PHP

<?php
/**
* Created by PhpStorm.
* User: whwyy
* Date: 2018/3/30 0030
* Time: 14:39
*/
namespace Database;
/**
* Interface IOrm
* @package Database
*/
interface IOrm
{
/**
* @param $param
* @param null $db
* @return ActiveRecord
*/
public static function findOne($param, $db = NULL);
/**
* @param $dbName
* @return Connection
*/
public static function setDatabaseConnect($dbName);
// public static function deleteAll($condition, $attributes);
// public static function updateAll($condition, $attributes);
}