• R/O
  • SSH
  • HTTPS

jinrousiki: Commit


Commit MetaInfo

Revision2302 (tree)
Time2018-12-24 22:37:54
Authorumethyl

Log Message

Query:未使用メソッド削除

Change Summary

Incremental Difference

--- trunk/include/database/db_class.php (revision 2301)
+++ trunk/include/database/db_class.php (revision 2302)
@@ -351,30 +351,6 @@
351351 private $lock = false;
352352
353353 //-- 直接生成型 --//
354- //SELECT 句生成
355- public static function SetSelect($table, $column) {
356- return sprintf('SELECT %s FROM %s', ArrayFilter::ToCSV(ArrayFilter::Pack($column)), $table);
357- }
358-
359- //WHERE 句生成
360- public static function SetWhere($data) {
361- return ' WHERE ' . ArrayFilter::Concat(self::SetHolder($data), ' AND ');
362- }
363-
364- //プレースホルダ用構文生成
365- public static function SetHolder($data) {
366- $stack = [];
367- foreach (ArrayFilter::Pack($data) as $column) {
368- $stack[] = $column . ' = ?';
369- }
370- return $stack;
371- }
372-
373- //IN 句生成
374- public static function SetIn(array $list) {
375- return ' IN ' . Text::Quote(ArrayFilter::ToCSV($list));
376- }
377-
378354 //LIMIT 句生成
379355 public static function SetLimit($from, $to) {
380356 return sprintf(' LIMIT %d, %d', $from, $to);
Show on old repository browser