定制 the.moiza/postgresql-relationship-finder 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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

  1. By composer.

    composer require the.moiza/postgresql-relationship-finder
  2. Clone this repository.

    git clone https://github.com/themoiza/postgresql-relationship-finder.git

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-07