Skip to content

Instantly share code, notes, and snippets.

View anytizer's full-sized avatar

Bimal Poudel anytizer

  • Canada
View GitHub Profile
@anytizer
anytizer / sqlite3.cpp
Last active May 15, 2024 17:51 — forked from lotfio/sqlite3.cpp
c++ sqlite3 create table and insert example
// From: https://gist.github.com/lotfio/cfbf857bc96a0487b53ed4877658a97b
// Fork: https://gist.github.com/anytizer/44bdc76947b302f22c5c1b67a83d2627
/**
* Minor Improvements:
* Sqlite => DatabaseManager.
* One lined insert statements.
* Embedded SQLite3 source code from amalgamation.
* Access pointer with "this".
* OS/compiler specific full path to the database name.
<?php
class Crypt {
private $key;
function __construct($key){
$this->setKey($key);
}