Download the PHP package rmtram/simple-text-db without Composer
On this page you can find all versions of the php package rmtram/simple-text-db. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rmtram/simple-text-db
More information about rmtram/simple-text-db
Files in rmtram/simple-text-db
Download rmtram/simple-text-db
More information about rmtram/simple-text-db
Files in rmtram/simple-text-db
Vendor rmtram
Package simple-text-db
Short Description Simple text file based database and database mapper.
License MIT
Homepage https://github.com/Rmtram/SimpleTextDb
Package simple-text-db
Short Description Simple text file based database and database mapper.
License MIT
Homepage https://github.com/Rmtram/SimpleTextDb
Please rate this library. Is it a good library?
Informations about the package simple-text-db
Simple Text Database.
Simple Text file based database and database mapper.
Install.
Usage.
Connector
For example create connector:
For example create table and select table:
For example drop table:
Dirver
- List
- list (Rmtram\SimpleTextDb\Drivers\ListDriver)
- hash (Rmtram\SimpleTextDb\Drivers\HashMapDriver)
ListDriver
-
methods
- all()
- find(Closure $callable)
- add(array $value)
- bulkAdd(array $values)
- update(array $update, Closure || null $callable)
- delete(Closure $callable)
- truncate()
- Where
- eq($key, $val)
- notEq($key, $val)
- lt($key, $val)
- lte($key, $val)
- gt($key, $val)
- gte($key, $val)
- like($key, $val)
- notLike($key, $val)
- orEq($key, $val)
- orNotEq($key, $val)
- orLt($key, $val)
- orLte($key, $val)
- orGt($key, $val)
- orGte($key, $val)
- orLike($key, $val)
- orNotLike($key, $val)
For example:
all()
find(Closure $callable)
- find in result(Result class)
- get()
- first()
- exists()
- count()
- call(Closure $callable)
For example result pattern:
For example where pattern:
For example where or:
add(array $value)
bulkAdd(array $values)
update(array $update, Closure || null $callable)
delete(Closure $callable)
truncate()
Delete all item.
HashMapDriver
- methods
- set(string $key, mixed $val)
- get(string $key)
- all()
- has(string $key)
- delete(string|array $key)
- truncate()
For example:
set(string $key, mixed $val)
get(string $key)
all()
has(string $key)
delete(string|array $key)
truncate()
Util
Unique
- methods
- id()
id()
Support version
- PHP 5.4
- PHP 5.5
- PHP 5.6
- PHP 7
- HHVM
All versions of simple-text-db with dependencies
PHP Build Version
Package Version
The package rmtram/simple-text-db contains the following files
Loading the files please wait ....