dskripchenko / laravel-schemify
Schemify数据库管理器,用于Postgres连接
2.0.0
2021-04-05 15:52 UTC
Requires
- dskripchenko/laravel-api: ^2.0.0
Requires (Dev)
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2024-09-05 23:45:26 UTC
README
运行
php composer.phar require dskripchenko/laravel-schemify "^2.0.0"
或添加
"dskripchenko/laravel-schemify": "^2.0.0"
到您的composer.json
文件的require
部分。
此组件为db
和migration
artisan命令选项添加了--layer
,用于指定动态数据库连接
database.php
中的Layers结构
return [ 'layersStruct' => [ 'core' => [ 'main' => true ], ], ];
组件
- ModelWithDynamicConnection
- getConnection
- getLayerItemName
控制台
命令
-
ApiInstall
- getEnvConfig
- getEnvConfig
- onEndSetup
-
Automigrate
- applyMigrations
-
BaseCommand
- getNewMigrationName
- getMigrationClassNameFromFile
- isMigrationClassNameExists
- preloadMigrationFiles
- copyMigrations
- getMigrationsByDir
- getTargetMigrationsDir
- getMigrationFilePathMap
-
InstallCommand
- installMigrations
- getMigrationsDir
- setupMigrations
-
PackagePostInstall
-
PackagePreUninstall
-
UninstallCommand
组件
-
PathByLayer
- getMigrationPath
-
RunByLayer
- runByLayer
数据库
- SeedCommand
- WipeCommand
迁移
- FreshCommand
- InstallCommand
- MigrateCommand
- MigrateMakeCommand
- RefreshCommand
- ResetCommand
- RollbackCommand
- StatusCommand
外观
- LayerItemConnector
- getLayerItemByName
- getAllLayerItems
接口
- ConnectorInterface
- refreshConnection
- getPreparedConnection
- getLayerItemByName
- getAllLayerItems
模型
- DbConnection
- LayerItem
服务提供商
- ArtisanServiceProvider
- ConsoleSupportServiceProvider
- LayerDBServiceProvider
- MigrationServiceProvider
服务
- ConnectionHelper