Got this job here:
Implement the following functionality on yii or yii2: 3) Write the class of interaction with the database (preferably postgreSQL), implement the methods for the class:
- Create - creates a database, input parameters, table name, and an array consisting of the field name, field data type, ext. Field data (not null, primary key for example).
Now I can’t understand with my mind how to do it from under yii2. After all, in the settings of yii2 in the config, the database used is already indicated and how to create a new database is not clear to me, because for this you need root rights to the DBMS.
The question is: do I not understand the task or is the task itself not feasible?
входные параметры, название таблицы, и массив состоящий из названия поля, тип данных поля, доп
can still create a table. And the text should have been written "creates in the database." I think it is better to clarify with those who gave the task. - Alexey Shimansky