Skip to content

Add Sequence to Schema objects#191

Open
mikkoi wants to merge 19 commits into
dbsrgits:masterfrom
mikkoi:add-sequence-to-schema-objects
Open

Add Sequence to Schema objects#191
mikkoi wants to merge 19 commits into
dbsrgits:masterfrom
mikkoi:add-sequence-to-schema-objects

Conversation

@mikkoi

@mikkoi mikkoi commented Apr 20, 2025

Copy link
Copy Markdown

No description provided.

@rabbiveesh

Copy link
Copy Markdown
Contributor

This is a start; i don't see much use until it's in at least some parsers and producers though.

@mikkoi

mikkoi commented Apr 23, 2025

Copy link
Copy Markdown
Author

It works with TT. I am thinking of submitting a Pg compatible template.

@mikkoi

mikkoi commented Apr 27, 2025

Copy link
Copy Markdown
Author

Added Pg SQL producer.
I am working on Pg SQL parser.

@rabbiveesh

Copy link
Copy Markdown
Contributor

amazing, thanks!
I'll review once the parser is done.

@mikkoi

mikkoi commented May 29, 2025

Copy link
Copy Markdown
Author

PostgreSQL parser is done.
It took some time because Parse::RecDescent was a new acquaintance to me.

@mikkoi

mikkoi commented May 29, 2025

Copy link
Copy Markdown
Author

I will add more producers. YAML is almost ready.

@mikkoi

mikkoi commented Jun 2, 2025

Copy link
Copy Markdown
Author

YAML added.
I think this PR could be ready.

@rabbiveesh rabbiveesh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleanup of dead code please, and then there's some discussion to be had in the comments

Comment thread lib/SQL/Translator/Parser/PostgreSQL.pm Outdated
Comment thread lib/SQL/Translator/Parser/PostgreSQL.pm
Comment thread lib/SQL/Translator/Parser/PostgreSQL.pm
Comment thread lib/SQL/Translator/Producer/PostgreSQL.pm Outdated
Comment thread t/47postgres-producer.t
Comment thread lib/SQL/Translator/Schema/DataType.pm
Comment thread lib/SQL/Translator/Parser/PostgreSQL.pm Outdated
Comment thread lib/SQL/Translator/Parser/PostgreSQL.pm Outdated
Comment thread lib/SQL/Translator/Parser/PostgreSQL.pm Outdated
@mikkoi mikkoi requested a review from rabbiveesh June 6, 2025 18:18

@rabbiveesh rabbiveesh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basically what i wrote in the comments.
I'm somewhat concerned about needing to add no_comments in a bunch of tests - what happened there?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we put this in a different PR?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the diff making?
Okay.

attach_comments => $pargs->{attach_comments}
}
);
# warn '$sequence_def:' . Dumper($sequence_def);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz remove dead comments

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

Comment thread lib/SQL/Translator/Schema/DataType.pm
Comment thread t/30sqlt-new-diff-mysql.t

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was no_comments added here? you didn't touch any mysql stuff, no?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I need to make one small change to accommodate the no_comments field.
Either no_comments becomes default in SQL::Translator::Producer::MySQL or I apply it in the equivalent test.
Otherwise, I haven't changed MySQL stuff.

Would it better to have no_comments as default value in MySQL Producer?

@rabbiveesh

Copy link
Copy Markdown
Contributor

as an aside, i prefer not surrounding double sigils with braces, but i'm not gonna be that nitpicky right now

@mikkoi

mikkoi commented Oct 5, 2025

Copy link
Copy Markdown
Author

as an aside, i prefer not surrounding double sigils with braces, but i'm not gonna be that nitpicky right now

Got it. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants