Skip to content

feat(remix-dev): import .sql files as text - #3190

Merged
jacob-ebey merged 3 commits into
devfrom
sql-text-import
Aug 3, 2022
Merged

jacob-ebey merged 3 commits into
devfrom
sql-text-import

Conversation

@jacob-ebey

Copy link
Copy Markdown
Member

Adds the ability to import .sql files as text. This is useful when writing raw SQL instead of using an ORM.

@MichaelDeBoey MichaelDeBoey changed the title feat: import .sql files as text feat(remix-dev): import .sql files as text May 14, 2022
".ogg": "file",
".otf": "file",
".png": "file",
".sql": "text",

@sergiodxa sergiodxa May 15, 2022 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
".sql": "text",
".sql": "text",
".gql": "text",

What do you think about also adding .gql as text? That will let people import a .gql file with a GraphQL query/mutation/subscription and then use it as a variable directly in their code

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Let's do a separate PR for that.

@changeset-bot

changeset-bot Bot commented Aug 3, 2022 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 93afee6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
Name Type
@remix-run/dev Patch
create-remix Patch
remix Patch
@remix-run/eslint-config Patch
@remix-run/react Patch
@remix-run/serve Patch
@remix-run/server-runtime Patch
@remix-run/cloudflare Patch
@remix-run/node Patch
@remix-run/deno Patch
@remix-run/cloudflare-pages Patch
@remix-run/cloudflare-workers Patch
@remix-run/express Patch
@remix-run/netlify Patch
@remix-run/vercel Patch
@remix-run/architect Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants