资源简介
Medoo 简单操作数据库类,非常强大
代码片段和文件信息
/*!
* Medoo database framework
* https://medoo.in
* Version 1.6
*
* Copyright 2018 Angel Lai
* Released under the MIT license
*/
namespace Medoo;
use PDO;
use Exception;
use PDOException;
use InvalidArgumentException;
class Raw {
public $map;
public $value;
}
class Medoo
{
public $pdo;
protected $type;
protected $prefix;
protected $statement;
protected $dsn;
protected $logs = [];
protected $logging = false;
protected $debug_mode = false;
protected $guid = 0;
public function __construct(array $options)
{
if (isset($options[ ‘database_type‘ ]))
{
$this->type = strtolower($options[ ‘database_type‘ ]);
if ($this->type === ‘mariadb‘)
{
$this->type = ‘mysql‘;
}
}
if (isset($options[ ‘prefix‘ ]))
{
$this->prefix = $options[ ‘p
评论
共有 条评论