https://github.com/cleantalk/_btree-database
CleanTalk binary tree database package
https://github.com/cleantalk/_btree-database
Last synced: 11 months ago
JSON representation
CleanTalk binary tree database package
- Host: GitHub
- URL: https://github.com/cleantalk/_btree-database
- Owner: CleanTalk
- License: gpl-3.0
- Created: 2023-04-14T10:01:22.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-07T11:08:51.000Z (about 2 years ago)
- Last Synced: 2025-01-24T17:44:28.241Z (about 1 year ago)
- Language: PHP
- Size: 71.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CleanTalk file based database -
## Install
```
composer require cleantalk/btree_database
```
## Using
Connect database to your project:
```php
'2130706433',
'mask' => '4294967295',
'status' => 1,
'is_personal' => 0,
);
try {
// Instantiate the DB main controller
$file_db = new FileDB('fw_nets', $db_location);
// Prepare and insert data using fluid interface
$insert = $file_db->prepareData(array($data))->insert();
// Perform request using fluid interface
$db_results = $file_db
->setWhere( array( 'network' => array('2130706433'), ) )
->setLimit( 0, 20 )
->select( 'network', 'mask', 'status', 'is_personal' );
//Use ->delete to delete database
//$file_db->delete();
} catch (\Exception $e) {
print $e->getMessage();
}
var_dump($db_results);
```