-
-
Notifications
You must be signed in to change notification settings - Fork 144
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: gajus/slonik
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v32.0.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: gajus/slonik
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v33.0.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 2 commits
- 61 files changed
- 1 contributor
Commits on Nov 9, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8de6b04 - Browse repository at this point
Copy the full SHA 8de6b04View commit details -
Distinguish between SQL query and fragment (#429)
BREAKING CHANGE: ### Replaces `sql` tagged template literal with `sql.fragment`. Before: ```ts const where = sql`WHERE bar = 1` sql` SELECT 1 FROM foo ${where} ` ``` After: ```ts const where = sql.fragment`WHERE bar = 1` sql.fragment` SELECT 1 FROM foo ${where} ` ``` ### SQL fragments cannot be used as queries; use `sql.type` instead Before: ```ts connection.query(sql` SELECT 1 FROM foo `) ``` After: ```ts connection.query(sql.type({ id: z.object({ id: z.number(), }) })` SELECT 1 AS id FROM foo `) ``` ### Adds `sql.unsafe` (shortcut to `sql.type(z.any())`) Before: ```ts connection.query(sql` SELECT 1 FROM foo `) ``` After: ```ts connection.query(sql.unsafe` SELECT 1 FROM foo `) ``` ### Query methods can no longer by typed, i.e. `connection.one<Row>()` needs to be replaced with `connection.one(sql.type()``)`. Before: ```ts connection.oneFirst<number>(sql` SELECT 1 FROM foo `) ``` After: ```ts connection.oneFirst(sql.typeAlias('id')` SELECT 1 AS id FROM foo `) ```
Configuration menu - View commit details
-
Copy full SHA for d2f62c8 - Browse repository at this point
Copy the full SHA d2f62c8View commit details
There are no files selected for viewing