A small database engine in php. Perfect for small ARM devices and low usage.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dfstorm 07e5b80278 init'ish 3 years ago
LICENSE Initial commit 3 years ago
README.md init'ish 3 years ago
api_keys.json.exemple init'ish 3 years ago
index.php init'ish 3 years ago

README.md

small-memory

A small database engine in php. Perfect for small ARM devices and low usage. NOT SECURE.

Usage

Call the script with a GET parameter "query" (by default). The value must be in Base64. There is no "access control".

Create Database

CREATE DATABASE mydatabase

Create Table

CREATE TABLE mytable IN mydatabase (field1,field2,[...])

Insert

INSERT INTO mytable IN mydatabase ({"key":"value"})

Select

SELECT mytable IN mydatabase (*)

OR

SELECT mytable IN mydatabase ({"key":"value"})

Update

UPDATE mytable IN mydatabase ({"UnidID":"UniqID_Value","key":"new_value"})

Delete

DELETE mytable IN mydatabase ({"UnidID":"UniqID_Value"})