dskripchenko/laravel-schemify
Composer 安装命令:
composer require dskripchenko/laravel-schemify
包简介
Schemify database manager for postgres connections
README 文档
README
Run
php composer.phar require dskripchenko/laravel-schemify "^2.0.0"
or add
"dskripchenko/laravel-schemify": "^2.0.0"
to the require section of your composer.json file.
This component adds to db and migration artisan command option --layer for specify dynamic db connection
Layers struct in database.php
return [ 'layersStruct' => [ 'core' => [ 'main' => true ], ], ];
Components
- ModelWithDynamicConnection
- getConnection
- getLayerItemName
Console
Commands
-
ApiInstall
- getEnvConfig
- getEnvConfig
- onEndSetup
-
Automigrate
- applyMigrations
-
BaseCommand
- getNewMigrationName
- getMigrationClassNameFromFile
- isMigrationClassNameExists
- preloadMigrationFiles
- copyMigrations
- getMigrationsByDir
- getTargetMigrationsDir
- getMigrationFilePathMap
-
InstallCommand
- installMigrations
- getMigrationsDir
- setupMigrations
-
PackagePostInstall
-
PackagePreUninstall
-
UninstallCommand
Components
-
PathByLayer
- getMigrationPath
-
RunByLayer
- runByLayer
Database
- SeedCommand
- WipeCommand
Migrations
- FreshCommand
- InstallCommand
- MigrateCommand
- MigrateMakeCommand
- RefreshCommand
- ResetCommand
- RollbackCommand
- StatusCommand
Facades
- LayerItemConnector
- getLayerItemByName
- getAllLayerItems
Interfaces
- ConnectorInterface
- refreshConnection
- getPreparedConnection
- getLayerItemByName
- getAllLayerItems
Models
- DbConnection
- LayerItem
Providers
- ArtisanServiceProvider
- ConsoleSupportServiceProvider
- LayerDBServiceProvider
- MigrationServiceProvider
Services
- ConnectionHelper
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-08