11# Yazan - SQLToCIBuilder
2- Adavanced SQL to Codeigniter Query Builder Converter written in PHP
2+ SQL to Codeigniter Query Builder, A Converter written in PHP
33
44### Features
55- Converts SQL Queries to Codeigniter Query Builder.
@@ -16,8 +16,8 @@ Adavanced SQL to Codeigniter Query Builder Converter written in PHP
1616Live demo and free usage will be available soon.
1717
1818### Get Started
19- ##### Install by manual download:
20- Download the repository and install required packages by composer.json :
19+ ##### Install by a manual download:
20+ Download the repository and install required packages by composer.json.
2121
2222##### Packagist
2323You can also install it from packagist by running the following command:
@@ -48,7 +48,6 @@ $this->db->countAll('members');
4848##### A more complex example :
4949
5050``` php
51- <?php
5251$sql = "SELECT * FROM members WHERE age > 30
5352 OR (name LIKE 'J%' OR (surname='P' AND name IS NOT NULL)) AND AGE !=30";
5453$converter->convert($sql);
@@ -78,10 +77,10 @@ Some important options are briefly explained below:
7877| civ | integer | 3 | Your Codeigniter version. |
7978| db_instance | string | $this->db | Object in which database was loaded and initialized. |
8079| use_from | boolean | false | In CodeIgniter 3, wether it should use 'from' command instead of 'get' to select data from a table. |
81- | group | boolean | true | Wether it should group key value pairs into a php array, or generate commands for each key value pair. |
80+ | group | boolean | true | Whether it should group key value pairs into a php array, or generate commands for each key value pair. |
8281| single_line | boolean | true | When this argument is true, then converter tries to generate a single command instead of multiple. |
8382
84- ### How does it works?
83+ ### How does it works ?
8584Will be explained soon.
8685
8786### Known issues
0 commit comments