Skip to content

Conversation

mikkoi
Copy link

@mikkoi mikkoi commented Apr 20, 2025

No description provided.

@rabbiveesh
Copy link
Contributor

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

@mikkoi
Copy link
Author

mikkoi commented Apr 23, 2025

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

@mikkoi
Copy link
Author

mikkoi commented Apr 27, 2025

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

@rabbiveesh
Copy link
Contributor

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

@mikkoi
Copy link
Author

mikkoi commented May 29, 2025

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

@mikkoi
Copy link
Author

mikkoi commented May 29, 2025

I will add more producers. YAML is almost ready.

@mikkoi
Copy link
Author

mikkoi commented Jun 2, 2025

YAML added.
I think this PR could be ready.

Copy link
Contributor

@rabbiveesh rabbiveesh left a comment

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

@mikkoi mikkoi requested a review from rabbiveesh June 6, 2025 18:18
Copy link
Contributor

@rabbiveesh rabbiveesh left a comment

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
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
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
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
Author

Choose a reason for hiding this comment

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

Removed.

Copy link
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
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
Contributor

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

@mikkoi
Copy link
Author

mikkoi commented Oct 5, 2025

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