@@ -31,5 +31,9 @@ |
||
31 | 31 | $defaultValue = null, |
32 | 32 | string $extra = null |
33 | 33 | ):CreateTableInterface; |
34 | + |
|
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
34 | 38 | public function index($name); |
35 | 39 | } |
@@ -16,7 +16,14 @@ |
||
16 | 16 | */ |
17 | 17 | interface DeleteInterface extends StatementInterface{ |
18 | 18 | |
19 | + /** |
|
20 | + * @return void |
|
21 | + */ |
|
19 | 22 | public function from(); |
23 | + |
|
24 | + /** |
|
25 | + * @return void |
|
26 | + */ |
|
20 | 27 | public function where(); |
21 | 28 | # public function orWhere(); |
22 | 29 |
@@ -16,7 +16,14 @@ |
||
16 | 16 | */ |
17 | 17 | interface InsertInterface extends StatementInterface{ |
18 | 18 | |
19 | + /** |
|
20 | + * @return void |
|
21 | + */ |
|
19 | 22 | public function into(); |
23 | + |
|
24 | + /** |
|
25 | + * @return void |
|
26 | + */ |
|
20 | 27 | public function values(); |
21 | 28 | |
22 | 29 | } |
@@ -17,6 +17,10 @@ |
||
17 | 17 | interface StatementInterface{ |
18 | 18 | |
19 | 19 | public function sql():string; |
20 | + |
|
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
20 | 24 | public function execute(); |
21 | 25 | public function quote(string $str):string; |
22 | 26 |
@@ -16,7 +16,14 @@ |
||
16 | 16 | */ |
17 | 17 | interface UpdateInterface extends StatementInterface{ |
18 | 18 | |
19 | + /** |
|
20 | + * @return void |
|
21 | + */ |
|
19 | 22 | public function table(); |
23 | + |
|
24 | + /** |
|
25 | + * @return void |
|
26 | + */ |
|
20 | 27 | public function where(); |
21 | 28 | # public function orWhere(); |
22 | 29 |
@@ -23,10 +23,10 @@ |
||
23 | 23 | * |
24 | 24 | * @return \chillerlan\Database\Query\SelectInterface |
25 | 25 | public function from(array $expressions):SelectInterface{ |
26 | - * // @todo: index hint |
|
27 | - * |
|
26 | + * // @todo: index hint |
|
27 | + * |
|
28 | 28 | * return $this; |
29 | - * } |
|
29 | + * } |
|
30 | 30 | */ |
31 | 31 | |
32 | 32 |
@@ -53,7 +53,7 @@ |
||
53 | 53 | |
54 | 54 | $type = strtoupper(trim($type)); |
55 | 55 | $nolengthtypes = ['DATE', 'TINYBLOB', 'TINYTEXT', 'BLOB', 'TEXT', 'MEDIUMBLOB', |
56 | - 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
|
56 | + 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
|
57 | 57 | |
58 | 58 | $field[] = (is_int($length) || is_string($length) && count(explode(',', $length)) === 2) && !in_array($type, $nolengthtypes) |
59 | 59 | ? $type.'('. $length . ')' |