<commit_before># UtopyaDB
File based Database with Php

# Connection
$db = new UtopyaDB("fuuyemek");

#Backup / Restore
$db->backupDB();

$db->restoreBD("file.zip");


#Schema Operations
Create Schema (Create Table)
$db->createSchema("Schema Name");

Select Schema (Select Table)
$db->schema("Schema Name");

Rename Schema (Rename Table)
$db->schema("Schema Name")->rename("New Schema Name");

Drop Schema (Drop Table)
$db->schema("Schema Name")->drop();


#Index
$db->schema("Schema Name")->index(array("name","time"));


#Query
$db->schema("Schema Name")->find(array("name"=>"freedom"))->limit(0,10)->result();<commit_msg>Read Me<commit_after># UtopyaDB
File based Database with Php

# Connection
$db = new UtopyaDB("fuuyemek");

#Backup / Restore
$db->backupDB();

$db->restoreBD("file.zip");


# Schema Operations
Create Schema (Create Table)
$db->createSchema("Schema Name");

Select Schema (Select Table)
$db->schema("Schema Name");

Rename Schema (Rename Table)
$db->schema("Schema Name")->rename("New Schema Name");

Drop Schema (Drop Table)
$db->schema("Schema Name")->drop();


# Index
$db->schema("Schema Name")->index(array("name","time"));


# Query
$db->schema("Schema Name")->find(array("name"=>"freedom"))->limit(0,10)->result();
{'fraction_non_alphanumeric': 0.20883534136546184, 'fraction_numerical': 0.004819277108433735, 'mean_word_length': 6.644171779141105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6998944', 'n_tokens_mistral': 422, 'n_tokens_neox': 417, 'n_words': 98}