@@ -71,37 +71,25 @@ public function convertException(\PDOException $e): Nette\Database\DriverExcepti
7171 /********************* SQL ****************d*g**/
7272
7373
74- /**
75- * Delimites identifier for use in a SQL statement.
76- */
7774 public function delimite (string $ name ): string
7875 {
7976 // @see http://dev.mysql.com/doc/refman/5.0/en/identifiers.html
8077 return '` ' . str_replace ('` ' , '`` ' , $ name ) . '` ' ;
8178 }
8279
8380
84- /**
85- * Formats date-time for use in a SQL statement.
86- */
8781 public function formatDateTime (\DateTimeInterface $ value ): string
8882 {
8983 return $ value ->format ("'Y-m-d H:i:s' " );
9084 }
9185
9286
93- /**
94- * Formats date-time interval for use in a SQL statement.
95- */
9687 public function formatDateInterval (\DateInterval $ value ): string
9788 {
9889 return $ value ->format ("'%r%h:%I:%S' " );
9990 }
10091
10192
102- /**
103- * Encodes string for use in a LIKE statement.
104- */
10593 public function formatLike (string $ value , int $ pos ): string
10694 {
10795 $ value = str_replace ('\\' , '\\\\' , $ value );
@@ -110,9 +98,6 @@ public function formatLike(string $value, int $pos): string
11098 }
11199
112100
113- /**
114- * Injects LIMIT/OFFSET to the SQL query.
115- */
116101 public function applyLimit (string &$ sql , ?int $ limit , ?int $ offset ): void
117102 {
118103 if ($ limit < 0 || $ offset < 0 ) {
@@ -129,9 +114,6 @@ public function applyLimit(string &$sql, ?int $limit, ?int $offset): void
129114 /********************* reflection ****************d*g**/
130115
131116
132- /**
133- * Returns list of tables.
134- */
135117 public function getTables (): array
136118 {
137119 $ tables = [];
@@ -145,9 +127,6 @@ public function getTables(): array
145127 }
146128
147129
148- /**
149- * Returns metadata for all columns in a table.
150- */
151130 public function getColumns (string $ table ): array
152131 {
153132 $ columns = [];
@@ -169,9 +148,6 @@ public function getColumns(string $table): array
169148 }
170149
171150
172- /**
173- * Returns metadata for all indexes in a table.
174- */
175151 public function getIndexes (string $ table ): array
176152 {
177153 $ indexes = [];
@@ -185,9 +161,6 @@ public function getIndexes(string $table): array
185161 }
186162
187163
188- /**
189- * Returns metadata for all foreign keys in a table.
190- */
191164 public function getForeignKeys (string $ table ): array
192165 {
193166 $ keys = [];
@@ -205,9 +178,6 @@ public function getForeignKeys(string $table): array
205178 }
206179
207180
208- /**
209- * Returns associative array of detected types (IReflection::FIELD_*) in result set.
210- */
211181 public function getColumnTypes (\PDOStatement $ statement ): array
212182 {
213183 $ types = [];
0 commit comments