the.moiza/postgresql-relationship-finder
Composer 安装命令:
composer require the.moiza/postgresql-relationship-finder
包简介
Explore, analyze, and visualize relationships between database tables in PostgreSql
README 文档
README
Postgresql Relationship Finder is a tool for discovering and visualizing the relationships between database tables in PostgreSQL.
Table of Contents
Features
- Discover the relationships between tables using foreign keys.
- Easily navigate complex database schemas.
- Optimize SQL queries by understanding data relationships.
Getting Started
#!/usr/bin/php -q <?php require_once 'vendor/autoload.php'; use TheMoiza\PostgresqlRelationshipFinder\RelationshipFinder; $RelationshipFinder = new RelationshipFinder; echo $RelationshipFinder->find( $tableDown = ['public' => 'budget'], $tableTop = ['public' => 'users'], $connection = [ "DB_HOST" => "127.0.0.1", "DB_PORT" => "5432", "DB_DATABASE" => "database", "DB_USERNAME" => "user", "DB_PASSWORD" => "pass", "DB_SCHEMA" => "public" ] );
Return Example
Execute the php file cli.php on the terminal.
$ php ./cli.php ··public.budget --> public.order --> public.cart --> public.users ··public.budget --> public.order --> public.users ··public.budget --> public.users
Pre requisites
Before you begin, ensure you have met the following requirements:
- PostgreSQL installed and configured.
- PHP for running the Postgresql Relationship Finder script.
Installation
-
By composer.
composer require the.moiza/postgresql-relationship-finder
-
Clone this repository.
git clone https://github.com/themoiza/postgresql-relationship-finder.git
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-07