Alec Larson

Results 407 issues of Alec Larson

```ts db.select( t.tweet(tweet => ({ ...tweet, author: db.get(t.user, tweet.author), })) ) ``` By spreading `tweet` into the mapping, all columns should be selected and an additional `author` column is added...

enhancement
good first issue
priority: high

Currently, Rollup cannot treeshake `db.xyz` access, because ES6 classes are not treeshaked. Instead of there being a `Database` class with the generated client having a singleton instance, do the following:...

enhancement
status: on hold

So instead of `pg.row_to_json`, it would be `pg.rowToJson` 🤔

status: seeking feedback

```ts // SELECT DISTINCT ON(name) FROM "user" db.select(t.user(user => pg.distinct(user.name))) // SELECT COUNT(DISTINCT name) FROM "user" db.select(t.user(user => pg.count(pg.distinct(user.name)))) ```

enhancement

This will require the `t.json` and `t.jsonb` types to have a type parameter that can narrow the `Json` type that is used by default in TypeScript result sets. ```ts (arg:...

enhancement

Allow providing a schema object like so… ```ts pg.json_to_record({ a: 1, b: '' }, { a: t.int, b: t.text }).as('row') ``` …that creates the following SQL… ```sql json_to_record('{"a":1,"b":""}'::json) as row(a...

enhancement

Inside your `src/node/routes.ts` module: ```ts import { findPages } from 'saus' // The "/**" suffix is optional. findPages('./pages/**', ['*.mdx?', '*.njk']) ``` Paths are relative to the project root, so the...

roadmap
backlog

https://github.com/vercel/next.js/blob/70e7e58c379a68ac3b73628bae8abb6cf54aacb1/packages/next/server/lib/etag.ts

enhancement

https://github.com/vercel/next.js/tree/canary/packages/next/server/lib/squoosh meets https://github.com/aleclarson/module-extractor

package idea

Currently, all isolated modules are reloaded between page requests. Additionally, this reloading does not take place until the next request comes in. - We should reload eagerly (after each request,...

runtime
proposal