Kysely · Blogs
Blogs from Kysely on TechiSeek brings together work published by Kysely. Open any title to read it on the original site. Newer titles appear over time. 35 public listings.
- MERGE | Kysely (Kysely)Short and simple examples of how to write MERGE queries.
- Single row | Kysely (Kysely)Kysely is the most powerful type-safe SQL query builder for TypeScript. Get unparalleled autocompletion and compile-time type safety for co…
- SQL query builder vs raw SQL in TypeScript (Kysely)Compare Kysely with raw SQL in TypeScript: SQL templates, SafeQL, and typed SQL files from PgTyped, Prisma TypedSQL, and sqlc. When a query…
- SQL query builder vs ORM in TypeScript (Kysely)Compare SQL query builders and ORMs with TypeScript examples. Learn how Kysely composes typed SQL and when to choose it over a model-based…
- WHERE | Kysely (Kysely)Short and simple examples of how to use the where method to add a WHERE statement. While most of the examples show a SELECT query, the wher…
- Kysely vs Sequelize: a type-safe Sequelize alternative (Kysely)Kysely vs Sequelize: a Sequelize alternative that type-checks query references, infers result types from the selection, and migrates one qu…
- Complex join (Kysely)You can provide a function as the second argument to get a join
- Multiple rows (Kysely)On dialects that support it (for example PostgreSQL) you can insert multiple
- Simple selects (Kysely)Common table expressions (CTE) are a great way to modularize complex queries.
- Comparisons | Kysely (Kysely)Compare SQL query builders, ORMs, SQL embedded in TypeScript, and typed SQL files, and explore the tradeoffs between libraries.
- Simple inner join (Kysely)Simple inner joins can be done by providing a table name and two columns to join:
- Returning data (Kysely)On supported dialects like PostgreSQL you need to chain returning to the query to get
- Inserts, updates and deletions (Kysely)Some databases like postgres also allow you to run other queries than selects
- Integrations (Kysely)Kysely integrations with other libraries, ORMs, and AI assistants.
- Kysely vs Knex (Kysely)Compare Kysely and Knex SQL query builders: TypeScript inference through joins, aliases, and nested results, immutable query reuse, explici…
- Recipes | Kysely (Kysely)Explore Kysely recipes for reusable helpers, expressions, nested relations, database schemas, logging, and advanced TypeScript types.
- Kysely vs TypeORM: a type-safe TypeORM alternative (Kysely)Kysely vs TypeORM: a TypeORM alternative that type-checks query references, infers result types from the selection, and migrates one query…
- JOIN | Kysely (Kysely)Kysely is the most powerful type-safe SQL query builder for TypeScript. Get unparalleled autocompletion and compile-time type safety for co…
- Aliases | Kysely (Kysely)You can give an alias for selections and tables by appending as the_alias to the name:
- Insert subquery (Kysely)You can create an INSERT INTO SELECT FROM query using the expression method.
- DELETE | Kysely (Kysely)Short and simple examples of how to write DELETE queries.
- SELECT | Kysely (Kysely)Short and simple examples of using the SELECT methods.
- Complex values (Kysely)In addition to primitives, the values can also be arbitrary expressions.
- Source row existence (Kysely)Update a target column based on the existence of a source row:
- INSERT | Kysely (Kysely)Short and simple examples of how to write INSERT queries.
- Aliased inner join (Kysely)You can give an alias for the joined table like this:
- Dialects | Kysely (Kysely)Find built-in and community Kysely dialects for PostgreSQL, MySQL, SQL Server, SQLite, and other databases.
- Kysely vs Drizzle ORM (Kysely)Kysely vs Drizzle ORM for TypeScript: compile-time reference checks, typed JSON and CASE, safe query reuse, and migrating from Drizzle one…
- Temporary changes table (Kysely)Merge new entries from a temporary changes table:
- Other runtimes (Kysely)Use Kysely in browsers to build type-safe queries and compile SQL without a database connection.
- A single column (Kysely)Kysely is the most powerful type-safe SQL query builder for TypeScript. Get unparalleled autocompletion and compile-time type safety for co…
- Examples | Kysely (Kysely)Short and simple examples of how to use Kysely to achieve common tasks.
- UPDATE | Kysely (Kysely)Short and simple examples of how to write UPDATE queries.
- CTE | Kysely (Kysely)Short and simple examples of how to use Common Table Expressions (CTE) in queries.
- Transactions (Kysely)Short and simple examples of how to use transactions.