Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Add support for getTableNames() method from yii\db\Schema Class #21

Open
wants to merge 1 commit into
base: v1
Choose a base branch
from

Conversation

thinkflo
Copy link

Description

The current v1 of craft-connect does not provide a method to retrieve all the table names which is available as the getTableNames() method in the yii Schema class, so I just exposed the method.

Working Example:

{% set db = craft.connect.open('remote') %}

{% set results = craft.connect.schema(db).getTableNames() %}

@khalwat
Copy link
Collaborator

khalwat commented Mar 25, 2022

Ah sorry somehow I missed this PR! I will get it merged in.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants