richard4339/pipsqueek-sqlite

Medoo SQLite 扩展的特定逻辑扩展

1.1.3 2017-07-16 14:20 UTC

This package is auto-updated.

Last update: 2024-09-12 02:10:30 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock Build Status

Medoo 提供的 SQLite 插件,带有构造函数,适用于 PipSqueek Bot,但可在任何地方使用

通过 composer 安装

$ composer require richard4339/pipsqueek-sqlite

用法

use Pipsqueek\DB\SQLite\DB;
  
require 'vendor/autoload.php';
  
// Initialize
$db = new DB([
    'database_type' => 'sqlite',
    'database_file' => DBPATH
]);
  
$where["chatid"] = 12345;
  
$results = $db->getRandom(SOMETABLE, ["column1", "column2"], $where);

有关 Medoo 本身的更多详细信息,请参阅其 README 或其 网站

链接