@@ -12,7 +12,7 @@ Magic-query is a PHP library that helps you work with complex SQL queries.
12
12
13
13
It comes with 2 great features:
14
14
15
- - [ it helps you work with that require a variable number of parameters.] ( #parameters )
15
+ - [ ** MagicParameters ** : it helps you work with SQL queries that require a variable number of parameters.] ( #parameters )
16
16
- [ ** MagicJoin** : it writes JOINs for you!] ( #joins )
17
17
18
18
Installation
@@ -31,8 +31,8 @@ Simply use the composer package:
31
31
```
32
32
33
33
<a name =" parameters " ></a >
34
- Automatically discard unused parameters
35
- ---------------------------------------
34
+ Automatically discard unused parameters with MagicParameters
35
+ ------------------------------------------------------------
36
36
37
37
Just write the query with all possible parameters.
38
38
@@ -55,7 +55,7 @@ $result2 = $magicQuery->build($sql, []);
55
55
// The whole WHERE condition disappeared because it is not needed anymore!
56
56
```
57
57
58
- Curious to know how this work? <a class =" btn btn-primary " href =" doc/discard_unused_parameters.md " >Check out the complete guide!</a >
58
+ Curious to know how this work? <a class =" btn btn-primary btn-large " href =" doc/discard_unused_parameters.md " >Check out the parameters guide!</a >
59
59
60
60
<a name =" joins " ></a >
61
61
Automatically guess JOINs with MagicJoin!
@@ -104,7 +104,7 @@ $completeSql = $magicQuery->build($sql);
104
104
// $completeSql contains the complete SQL request, with all joins.
105
105
```
106
106
107
- Want to know more? <a class =" btn btn-primary " href =" doc/magic_join.md " >Check out the MagicJoin guide!</a >
107
+ Want to know more? <a class =" btn btn-primary btn-large " href =" doc/magic_join.md " >Check out the MagicJoin guide!</a >
108
108
109
109
Is it a MySQL only tool?
110
110
------------------------
0 commit comments