ALTER TABLE support?
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 48/100
Rechercherichtung
Start at the parser entry point used by parse() and trace how CREATE TABLE statements are represented in tables. Study the ALTER TABLE example and define how multiple operations remain in source order. Done means supported ALTER TABLE statements produce an alters property while tables and parse() retain their existing behavior.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Hi, and thanks for your work on this library!
What do you think about adding support for ALTER TABLE statements?
As an example, the output could be a separate alters property next to tables, in source order:
$parser->parse("ALTER TABLE t ADD COLUMN b INT NOT NULL AFTER a, DROP COLUMN c");
$parser->alters = [
[
'name' => 't',
'database' => null,
'ops' => [
['op' => 'ADD_COLUMN', 'field' => ['name' => 'b', 'type' => 'INT', 'null' => false], 'after' => 'a'],
['op' => 'DROP_COLUMN', 'name' => 'c'],
],
],
];
tables and the return value of parse() would stay as they are.
- Vorherrschende Sprache
- PHP
- Sterne
- 78
- Forks
- 22
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus iamcal/SQLParser
Alle Issues in iamcal/SQLParser
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
awesomemotive/all-in-one-seo-pack#3238 ·
-
help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
rootsiemen/loophole#98 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
Aba Settings ausente quando o PRO está ativoEvtl. vergeben @EuzebioBatista2 hat das heute übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
-
area/import type/documentation when/soon
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag