@@ -104,7 +104,7 @@ Prior to installing `php-orm-database` get the [Composer](https://getcomposer.or
104104** Step 1** — update your ` composer.json ` :
105105``` composer.json
106106"require" : {
107- "peterson/php-orm-database" : " ^3.1.1 "
107+ "peterson/php-orm-database" : " ^3.1.2 "
108108}
109109```
110110
@@ -1080,8 +1080,6 @@ use builder\Database\Migrations\Migration;
10801080```
10811081
10821082### Create Table Schema
1083- <details ><summary >Read more...</summary >
1084-
10851083- Takes param as ` table name `
10861084 - Second parameter ` string ` ` jobs|sessions ` (optional) -If passed will create a dummy ` jobs|sessions ` table schema
10871085
@@ -1098,11 +1096,8 @@ Table `2023_04_19_1681860618_tb_jobs` has been created successfully
10981096Table `2023_04_19_1681860618_tb_sessions` has been created successfully
10991097```
11001098![ Sample Session Schema] ( https://raw.githubusercontent.com/tamedevelopers/UltimateOrmDatabase/main/sessions.png )
1101- </details >
11021099
11031100### Run Migration
1104- <details ><summary >Read more...</summary >
1105-
11061101- You need to pass in ` up ` as a param
11071102 - This auto create folders/subfolder with read permission
11081103 - The code above execute all files located in [ root/database/migrations]
@@ -1114,7 +1109,6 @@ Migration::run('up');
11141109Migration runned successfully on `2023_04_19_1681860618_user`
11151110Migration runned successfully on `2023_04_19_1681860618_user_wallet`
11161111```
1117- </details >
11181112
11191113### Drop Table
11201114<details ><summary >Read more...</summary >
@@ -1284,14 +1278,16 @@ class PostClass extends DB{
12841278| function | Description |
12851279| ---------------------------| -----------------------------------|
12861280| base_dir() | Return ` server ` base directory |
1287- | orm_db() | Return instance of ` new DB($options) ` class |
1288- | orm_import() | Return instance of ` (new DBImport) ` class |
1289- | orm_migration() | Return instance of ` (new Migration) ` class |
1290- | orm_dot_env() | Return instance of ` (new OrmDotEnv) ` class |
1281+ | db() | Return instance of ` new DB($options) ` class |
1282+ | db_exec() | Return instance of ` (new MySqlExec) ` class |
1283+ | import() | Return instance of ` (new DBImport) ` class |
1284+ | migration() | Return instance of ` (new Migration) ` class |
1285+ | schema() | Return instance of ` (new Schema) ` class |
1286+ | dot_env() | Return instance of ` (new OrmDotEnv) ` class |
12911287| autoload_env() | Return instance of ` (new AutoloadEnv) ` class |
12921288| env_start() | Same as ` AutoloadEnv::start() ` |
1293- | config_database() | Same as ` Direct DB Connection ` get access to ` DATABASE_CONNECTION ` Constant |
1294- | configure_pagination() | Same as ` $db->configurePagination() ` or ` AutoloadEnv::configurePagination ` |
1289+ | config_database() | Same as ` Direct DB Connection ` get access to ` DATABASE_CONNECTION ` Constant |
1290+ | configure_pagination() | Same as ` $db->configurePagination() ` or ` AutoloadEnv::configurePagination ` |
12951291| app_config() | Same as ` $db->AppConfig() ` |
12961292| get_connection() | Same as ` $db->getConnection() ` |
12971293| get_app_data() | Get ` path ` ` database ` & ` pagination ` info |
0 commit comments