Respect / Respect/Relational

Schema support

Open
#45 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Easy Pick
Dominant language
PHP
Stars
237
Forks
32
PR merge metrics
No merged PRs in 30d

Description

The bits I was allowed to see from the ANS SQL standard ISO/IEC 9075, was the results from a search query for "SQL table name" and I quote.

ISO/IEC 9075 specifies that an object such as an SQL-invoked routine, a user-defined type, a domain, a table, a view, or a privilege shall be part of exactly one schema.

At #36 @robinson-rso raised an interesting question, can we handle schemas. Which is at first I thought nothing strange of surely PDO will take care of that, but does it?
PostgreSQL's use of schemas is not all that different to using multiple MySQL databases simultaneously where you would prefix the table name with the database name.

The following tasks items should be actioned.

  • Can we use multiple databases out of the box- create tests to prov it

if not

  • Can we deal with PostgreSQL schema in connection string? this won't solve multiple databases/schemas but at least it's not completely defunct.
  • Investigate how others have approached the problem
  • Discuss and design the ideal solution which will allow multiple databases/schemas

@Respect and the friends of Respect what are your thoughts on this?
Please help with suggestions, research and test results.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by creating tests for whether multiple databases can be used out of the box, as requested in the issue. If that is unsupported, investigate PostgreSQL schemas in the connection string and how other projects handle multiple databases or schemas; done requires an agreed design and test-backed support.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php, postgresql
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.