ts-safeql / safeql

Validate and auto-generate TypeScript types from raw SQL queries in PostgreSQL.
https://safeql.dev
MIT License
1.35k stars 22 forks source link

Use SQL commands instead of createdb and dropdb #249

Closed georgesmith46 closed 3 months ago

georgesmith46 commented 3 months ago

Fixes: #245

Removes calls to createdb and dropdb and replaces them with SQL commands. This means the user will not need to install the PostgreSQL client to use this tool.

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **safeql** | ⬜️ Ignored ([Inspect](https://vercel.com/newbie012s-projects/safeql/FG2A3Fpmd89KNnoHsYmJ7NyJPNSH)) | [Visit Preview](https://safeql-git-fork-georgesmith46-switch-c167fa-newbie012s-projects.vercel.app) | | Aug 4, 2024 3:31pm |
changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: 5e5c89e6a26906ea2b441fb7b7b3d35b938e06fe

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

This PR includes changesets to release 17 packages | Name | Type | | ---------------------------------------- | ----- | | @ts-safeql/eslint-plugin | Minor | | @ts-safeql-demos/basic-flat-config | Patch | | @ts-safeql-demos/basic-migrations-raw | Patch | | @ts-safeql-demos/basic-transform-type | Patch | | @ts-safeql-demos/basic | Patch | | @ts-safeql-demos/big-project | Patch | | @ts-safeql-demos/config-file-flat-config | Patch | | @ts-safeql-demos/from-config-file | Patch | | @ts-safeql-demos/multi-connections | Patch | | @ts-safeql-demos/playground | Patch | | @ts-safeql-demos/postgresjs-custom-types | Patch | | @ts-safeql-demos/postgresjs-demo | Patch | | @ts-safeql-demos/vercel-postgres | Patch | | @ts-safeql/generate | Minor | | @ts-safeql/shared | Minor | | @ts-safeql/sql-ast | Minor | | @ts-safeql/test-utils | 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

georgesmith46 commented 3 months ago

@Newbie012 I'm not sure what the versioning strategy is here. Should I create a changeset or bump the versions manually?

Newbie012 commented 3 months ago

run pnpm changeset from the root.

Looks great!