Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: replace proof-of-sql-parser with sqlparser #286

Closed
wants to merge 6 commits into from

Conversation

varshith257
Copy link
Contributor

@varshith257 varshith257 commented Oct 21, 2024

Please be sure to look over the pull request guidelines here: https://github.com/spaceandtimelabs/sxt-proof-of-sql/blob/main/CONTRIBUTING.md#submit-pr.

Please go through the following checklist

Rationale for this change

Part of #235

What changes are included in this PR?

Are these changes tested?

Docs Reference:

https://docs.rs/sqlparser/latest/sqlparser/ast/

@varshith257 varshith257 changed the title feat: replace proof-of-sql-parser with sqlparser feat!: replace proof-of-sql-parser with sqlparser Oct 21, 2024
@@ -11,8 +11,15 @@ use crate::{
},
};
use alloc::{fmt, vec, vec::Vec};
use proof_of_sql_parser::{intermediate_ast::SetExpression, Identifier, SelectStatement};
use proof_of_sql_parser::{
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we're still depending on this crate here, we cannot delete the proof-of-sql-parser crate yet.

Once try_new_from_sqlparser can be used as a replacement for the old method, we can slowly remove the dependencies here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@JayWhite2357 I think @iajoiner has stated a few alternatives. I will check with the existing documentation and will proceed with the next steps outlined first to replace Identifier with sqlparser::ast::ident

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry! I haven't looked at this #235 (comment) :) Ok I will follow the commented approach

@@ -4,9 +4,8 @@
* https://docs.rs/vervolg/latest/vervolg/ast/enum.Statement.html
***/

use crate::{posql_time::PoSQLTimestamp, Identifier};
use crate::{intermediate_decimal::IntermediateDecimal, posql_time::PoSQLTimestamp, Identifier};
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't have IntermediateDecimal any more which should make things easier.

@iajoiner
Copy link
Contributor

iajoiner commented Oct 28, 2024

@varshith257 Please rebase since our code base has changed pretty significantly.

@varshith257
Copy link
Contributor Author

Sure!

@iajoiner
Copy link
Contributor

iajoiner commented Dec 3, 2024

Closed since this PR has been split into lots of different ones such as #362 and #363.

@iajoiner iajoiner closed this Dec 3, 2024
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.

3 participants