richard4339/pipsqueek-sqlite

Extension of the Medoo SQLite extension with specific logic

1.1.3 2017-07-16 14:20 UTC

This package is auto-updated.

Last update: 2022-06-11 21:09:26 UTC


README

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

SQLite addon for Medoo with constructor, meant for the PipSqueek Bot but usable anywhere

Install via composer

$ composer require richard4339/pipsqueek-sqlite

Usage

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);

See more specifics on Medoo itself on their Readme or their website

Links