<commit_before># SchemaDB

SchemaDB is an abstraction layer to manage MySQL database 
with improved function to alter-state and manipulate database schema.
SchemaDB integrates a ORM class for manage persisten objects and adapt database schema

# Ebook

A free ebook for italians: https://leanpub.com/schemadb-capitolo-zero/

# How to: Connect to database

```php
<?php
// library namespace 
use Javanile\SchamaDB\Database;

// initialize a database connection object 
$db = new Database([
	'host'     => 'localhost',
	'dbname'   => 'db_marketing',
	'usernane' => 'root',
	'password' => '<PASSWORD>',
	'prefix'   => 'prefix_',
]);

// '$db' is ready to use for your manipulation
```

# How to: Create ORM class-model

```php
<?php
// library namespace 
use Javanile\SchamaDB\Storable;

// define ORM class-model
class Customer extends Storable {
	public $id = self::PRIMARY_KEY;
	public $name = '';
}

// instance empty object
// database tables and fields are automatic generated 
// or updated if change Customer class
$Customer = new Customer();

// assign values
$Customer->name = '<NAME>';

// now object persist on DB<commit_msg>*changed namespace name to correct one<commit_after># SchemaDB

SchemaDB is an abstraction layer to manage MySQL database 
with improved function to alter-state and manipulate database schema.
SchemaDB integrates a ORM class for manage persisten objects and adapt database schema

# Ebook

A free ebook for italians: https://leanpub.com/schemadb-capitolo-zero/

# How to: Connect to database

```php
<?php
// library namespace 
use Javanile\SchemaDB\Database;

// initialize a database connection object 
$db = new Database([
	'host'     => 'localhost',
	'dbname'   => 'db_marketing',
	'usernane' => 'root',
	'password' => 'p4ssw0rd',
	'prefix'   => 'prefix_',
]);

// '$db' is ready to use for your manipulation
```

# How to: Create ORM class-model

```php
<?php
// library namespace 
use Javanile\SchemaDB\Storable;

// define ORM class-model
class Customer extends Storable {
	public $id = self::PRIMARY_KEY;
	public $name = '';
}

// instance empty object
// database tables and fields are automatic generated 
// or updated if change Customer class
$Customer = new Customer();

// assign values
$Customer->name = '<NAME>';

// now object persist on DB
{'fraction_non_alphanumeric': 0.116542994325622, 'fraction_numerical': 0.0008729812309035355, 'mean_word_length': 4.048458149779735, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 18, 'https://': 2, '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': '5148666', 'n_tokens_mistral': 703, 'n_tokens_neox': 683, 'n_words': 260}