You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to enable users targeting different DBMS systems to create .sql files with the target db/platform filename suffix.
For example, sql file generated from some invoices-total.prql for the duckdb target will be named invoices-total.duckdb.sql.
The same user can then change prql.target to SQLite, create and save somewhat different invoices-total.sqlite.sql file and add it to their project version control system.
In both scenarios we just add sql dialect suffix before .sql file extension name when generating sql files via #42 feature.
To keep it simple, we'll default this setting to false, and advanced users can change it in their workspace settings.
Note: we'll do this for all the supported SQL system dialects, and skip adding this sql filename suffix when the current workspace prql.target setting is Generic or None recently added in #98.
The text was updated successfully, but these errors were encountered:
RandomFractals
changed the title
Add boolean prql.addTargetSqlDialectFilenamePrefix setting for the generated SQL files
Add boolean prql.addTargetSqlDialectFilenamePrefix setting for the generated SQL filenames
Feb 16, 2023
RandomFractals
changed the title
Add boolean prql.addTargetSqlDialectFilenamePrefix setting for the generated SQL filenames
Add boolean prql.addTargetSqlDialectFilenameSuffix setting for the generated SQL filenames
Feb 16, 2023
RandomFractals
changed the title
Add boolean prql.addTargetSqlDialectFilenameSuffix setting for the generated SQL filenames
Add boolean prql.addTargetDialectToSqlFilenames setting for the generated SQL filenames
Feb 16, 2023
I can see folks using some transactional db and duckdb for analytics use this feature in some form or the other.
We can set up telemetry later. I don't think we have enough active users to start logging what features are used, or how many times sql preview is shown.
VSCode does have standard telemetry api, but that might require setting up Azure service, or do it with google analytics. i.e. much larger want/ask that should be written down as a separate ticket for us to consider adding it.
to enable users targeting different DBMS systems to create
.sql
files with the target db/platform filename suffix.For example, sql file generated from some
invoices-total.prql
for theduckdb
target will be namedinvoices-total.duckdb.sql
.The same user can then change
prql.target
toSQLite
, create and save somewhat differentinvoices-total.sqlite.sql
file and add it to their project version control system.In both scenarios we just add sql dialect suffix before
.sql
file extension name when generating sql files via #42 feature.To keep it simple, we'll default this setting to
false
, and advanced users can change it in their workspace settings.Note: we'll do this for all the supported SQL system dialects, and skip adding this sql filename suffix when the current workspace
prql.target
setting isGeneric
orNone
recently added in #98.The text was updated successfully, but these errors were encountered: