db
db copied to clipboard
Yii Database Library
### What steps will reproduce the problem? Try to import db schema (from mysqldump or PhpMyAdmin schema export) with some error on non-first query. In example, change "int" column type...
### What steps will reproduce the problem? Yii 2.x (and also Yii 1.x) `Query::all()` result is very limited. Main problems: - loading all record it once - larger memory requirement...
New feature, adding the possibility to use CASE WHEN in yii\db\Query ## DB support for CASE WHEN - [x] MySQL - [x] PostgreSQL - [ ] MSSQL - [ ]...
Reviewing the executed SQL statements in the debug toolbar or SQL log file is difficult to identify where they created. It would be very convenient to add id to the...
``` php $db = db()->createCommand(" UPDATE bet SET status = subquery.winr FROM (:subquery) AS subquery WHERE bet.id = subquery.id ", ['subquery' => new Expression($this->leadersQuery()->select(['id', 'winr'])->createCommand()->rawSql)])->execute(); //->update(/*the truth is out there*/);...
we should add one function `copyTable($table,$newName,$onlyStructure = true)` I hope it could provide a function to copy table efficient ## Funding * You can sponsor this specific effort via a...
Very often in practice I have to do a bulk update of rows. IN PostgreSQL: ```sql UPDATE table AS t SET col1 = c.col1, col2 = c.col2 FROM (VALUES (1,...
### What steps will reproduce the problem? Нет гибкого конструктора для создания запросов с агрегирующими функциями. ### What is the expected result? Простой и гибкий конструктор в QueryBuilder::buildSelect() для формирования...
Feature request for discussion. When the DB server uses multi-master replication, conflict can occur when clients of different replication masters write to the same row. In the case of Galera...
Please add a longtext type in the schema builder!