-
-
Notifications
You must be signed in to change notification settings - Fork 835
Open
Labels
Description
Hi, thanks for this awesome project. I'm trying to create files using this command:
php artisan infyom:api MyClass --fromTable --tableName="lv_my_table"
But nothing happened on my terminal, like something was being processed in the background. So I've started to investigate and I discover that: when you use the --fromTable parameter, Infyom use the current connection to list all tables, all fields and all relations to generate the data.
#vendor/infyomlabs/laravel-generator/src/Utils/TableFieldsGenerator.php:304
/**
* Prepares foreign keys from table with required details.
*
* @return GeneratorTable[]
*/
public function prepareForeignKeys()
{
$tables = $this->schemaManager->listTables();
However, this is very consuming because our database has more than 600 tables, distributed in different schemas.
How can I limit Infyom to look into only on laravel default schema? Or even create a cache or something else that makes the process faster?