Skip to content

Commit

Permalink
Merge branch 'master' into expose-all-selection
Browse files Browse the repository at this point in the history
  • Loading branch information
igalklebanov authored Apr 21, 2024
2 parents 6ea5ef0 + b5e2fce commit 3cb17ed
Show file tree
Hide file tree
Showing 63 changed files with 2,577 additions and 655 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,28 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
bun-version: [1.x]
deno-version: [1.34.x]
node-version: [18.x, 20.x]
bun-version: [1.0.23]
deno-version: [1.42.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Use Deno ${{ matrix.deno-version }}
uses: denolib/setup-deno@v2
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}

# - name: Use Bun ${{ matrix.bun-version }}
# uses: oven-sh/setup-bun@v1
# with:
# bun-version: ${{ matrix.bun-version }}
- name: Use Bun ${{ matrix.bun-version }}
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ matrix.bun-version }}

- name: Install dependencies
run: npm ci
Expand All @@ -41,7 +42,7 @@ jobs:
run: npx playwright install

- name: Run docker compose
run: docker-compose up -d
run: docker compose up -d

- name: Run node tests
run: npm test
Expand All @@ -55,8 +56,8 @@ jobs:
- name: Run deno tests
run: npm run test:deno

# - name: Run bun tests
# run: npm run test:bun
- name: Run bun tests
run: npm run test:bun

- name: Run esbuild test
run: npm run test:esbuild
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@
[![License](https://img.shields.io/github/license/kysely-org/kysely?style=flat)](https://github.com/kysely-org/kysely/blob/master/LICENSE)
[![Issues](https://img.shields.io/github/issues-closed/kysely-org/kysely?logo=github)](https://github.com/kysely-org/kysely/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)
[![Pull Requests](https://img.shields.io/github/issues-pr-closed/kysely-org/kysely?label=PRs&logo=github&style=flat)](https://github.com/kysely-org/kysely/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc)
[![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/github/kysely-org/kysely?style=flat&logo=snyk)](https://snyk.io/advisor/npm-package/kysely)
[![Downloads](https://img.shields.io/npm/dw/kysely?logo=npm)](https://www.npmjs.com/package/kysely)
[![Bundle Size](https://img.shields.io/bundlephobia/minzip/kysely?label=size&logo=npm)](https://bundlephobia.com/package/kysely)
[![Social](https://img.shields.io/twitter/follow/kysely_?style=social)](https://twitter.com/kysely_)

# [Kysely](https://kysely.dev)

Kysely (pronounce “Key-Seh-Lee”) is a type-safe and autocompletion-friendly typescript SQL query builder.
Inspired by [knex](http://knexjs.org/). Mainly developed for [node.js](https://nodejs.org/en/) but also
runs on all other javascript environments like [deno](https://deno.land/).
Kysely (pronounce “Key-Seh-Lee”) is a type-safe and autocompletion-friendly [TypeScript](https://www.typescriptlang.org/) [SQL](https://en.wikipedia.org/wiki/SQL) query builder.
Inspired by [Knex.js](http://knexjs.org/). Mainly developed for [Node.js](https://nodejs.org/en/) but also
runs on all other [JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) environments like [Deno](https://deno.com/), [Bun](https://bun.sh/), [Cloudflare Workers](https://workers.cloudflare.com/)
and web browsers.

![](https://github.com/kysely-org/kysely/blob/master/assets/demo.gif)

Kysely makes sure you only refer to tables and columns that are visible to the part of the query
you're writing. The result type only has the selected columns with correct types and aliases. As an
added bonus you get autocompletion for all that stuff.

As shown in the gif above, through the pure magic of modern typescript, Kysely is even able to parse
As shown in the gif above, through the pure magic of modern TypeScript, Kysely is even able to parse
the alias given to `pet.name` and add the `pet_name` column to the result row type. Kysely is able to infer
column names, aliases and types from selected subqueries, joined subqueries, `with` statements and pretty
much anything you can think of.
Expand All @@ -35,7 +35,7 @@ All API documentation is written in the typing files and you can simply hover ov
or method you're using to see it in your IDE. The same documentation is also hosted [here](https://kysely-org.github.io/kysely-apidoc/).

If you start using Kysely and can't find something you'd want to use, please open an issue or join our
[discord server](https://discord.gg/xyBJ3GwvAm).
[Discord server](https://discord.gg/xyBJ3GwvAm).

# Getting started

Expand Down
Loading

0 comments on commit 3cb17ed

Please sign in to comment.