dskripchenko/laravel-schemify 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固