bennycheung / PyFireSQL

PyFireSQL is a SQL-like programming interface to query Cloud Firestore collections
MIT License
7 stars 1 forks source link

No way to "reverse" parse from `SQL_DML_Command` back to SQL (`text`) #3

Open steven-contreras-datapipertech opened 10 months ago

steven-contreras-datapipertech commented 10 months ago

This will be needed on rare occasions, at least in my project it is. I am currently working on a solution.

steven-contreras-datapipertech commented 10 months ago

So far, I am thinking a "reverse parse" grammar will be needed in order to do this the "right" way. What are your thoughts?

steven-contreras-datapipertech commented 10 months ago

For further context, here is my particular use-case:

Thus, I am thinking the best/cleanest way to do this would be to build out a "reverse parse" grammar from SQL_DML_Command to SQL (text).

Your thoughts?

steven-contreras-datapipertech commented 10 months ago

I've found an alternate method to accomplish this.

steven-contreras-datapipertech commented 10 months ago

After successfully implementing this in my API, I wonder if this feature would be desirable in PyFireSQL itself - that is, would enforcing Referential Integrity restraints be a desirable feature in PyFireSQL? If so, we ought to have a more thorough design discussion. Let me know what you think.