awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目MCP 服务器关于排名机制媒体报道
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
kysely-org avatar

kysely-org/kysely

0
View on GitHub↗
13,969 星标·419 分支·TypeScript·MIT·6 次浏览kysely.dev↗

Kysely

Kysely is a TypeScript SQL query builder that provides a type-safe interface for constructing and executing database queries. It functions as a database layer that ensures schema compliance and prevents runtime errors by using a fluent interface and a programmable way to build complex SQL statements.

The project features a type-safe database layer capable of inferring return types and aliases from SQL selections and joins. It also includes a SQL migration manager to track and apply schema changes across different environments to keep database versions synchronized.

The toolkit covers relational database integration through dynamic query construction and the execution of raw SQL statements. It allows for the creation of parameterized SQL snippets and the ability to reference tables and columns dynamically at runtime.

Features

  • Type-Safe Database Clients - Functions as a type-safe database layer that infers return types and aliases from SQL selections and joins.
  • Type-Safe Query Builders - Provides a type-safe query builder that ensures database schema compliance at compile time.
  • Dynamic SQL Generators - Builds SQL statements at runtime based on variable inputs while maintaining type safety.
  • Fluent Query Builders - Implements a chainable, functional interface for constructing complex SQL queries programmatically.
  • Relational Database Connectors - Connects TypeScript applications to relational databases using a fluent interface for data management.
  • Schema Mapping Utilities - Maps TypeScript interfaces to database table structures to provide compile-time validation of schema types.
  • SQL Query Builders - Provides a type-safe interface for constructing and executing SQL queries to ensure schema compliance.
  • Fluent Interfaces - Provides a fluent interface for building complex, type-safe SQL queries through method chaining.
  • Query Result Type Inference - Calculates exact return types and aliases for queries by analyzing selected columns and join operations.
  • Dynamic Column References - Identifies database columns using names provided at runtime to build queries based on user input.
  • Parameterized SQL Templates - Uses tagged templates to separate raw SQL from user values to prevent SQL injection attacks.
  • Database Migrations - Includes a migration manager to track and apply schema changes across different environments.
  • Migration Management - Includes a migration manager to track and apply schema changes across different environments.
  • Raw SQL Execution - Allows the execution of manual SQL statements for complex scenarios that exceed the query builder's capabilities.
  • Parameterized SQL Snippets - Creates parameterized SQL fragments using template tags to prevent security vulnerabilities like injection.
  • SQL Dialect Adapters - Provides a driver-agnostic layer that adapts SQL syntax across different database engines through a unified API.
  • Dynamic Table References - Identifies database tables using names provided at runtime to select specific tables within a query.
  • Dynamic SQL Expressions - Allows referencing database columns and tables dynamically at runtime while maintaining a structured query object.
  • Databases and Data Tools - Type-safe SQL query builder for TypeScript.
  • Search and Databases - Builds type-safe SQL queries.

Star 历史

kysely-org/kysely 的 Star 历史图表kysely-org/kysely 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Kysely 的开源替代方案

相似的开源项目,按与 Kysely 的功能重合度排序。
  • simolus3/driftsimolus3 的头像

    simolus3/drift

    3,231在 GitHub 上查看↗

    Drift is a type-safe SQL persistence library and relational mapper that provides a structured way to map database tables to classes and execute SQL queries with build-time validation. It functions as a type-safe query builder and a wrapper for SQLite and PostgreSQL, eliminating manual result set parsing by binding query outputs to native objects. The project distinguishes itself through a build-time code generation system that produces type-safe APIs and validates raw SQL statements against database versions before execution. It features reactive query streaming, which transforms SQL queries

    Dartdartdart-build-systemflutter
    在 GitHub 上查看↗3,231
  • knex/knexknex 的头像

    knex/knex

    20,300在 GitHub 上查看↗

    Knex is a multi-dialect database client that provides a programmatic SQL query builder, a connection pool manager, and a versioned schema migration tool. It enables programmatic database interaction across multiple SQL engines, including PostgreSQL, MySQL, SQLite3, SQL Server, CockroachDB, and Oracle. The project distinguishes itself through a fluent interface for constructing complex SQL statements and a dedicated framework for database seeding. It utilizes specialized dialects to translate generic query representations into database-specific syntax while maintaining a consistent API across

    JavaScript
    在 GitHub 上查看↗20,300
  • uptrace/bunuptrace 的头像

    uptrace/bun

    4,867在 GitHub 上查看↗

    Bun is a type-safe object relational mapper for Go that prioritizes SQL-first query construction and result mapping. It functions as a programmable SQL query builder, a database connection manager, and a tool for mapping database tables to Go structs. The project distinguishes itself through a multi-dialect SQL support system, allowing a single codebase to interact with different database engines via a consistent interface. It includes a built-in database observability tool for query interception, distributed tracing, and logging, as well as a schema migration tool for versioning structural c

    Godatabasegogolang
    在 GitHub 上查看↗4,867
  • seaql/sea-ormSeaQL 的头像

    SeaQL/sea-orm

    9,410在 GitHub 上查看↗

    Sea-ORM is an asynchronous SQL object-relational mapper and database toolkit for mapping relational tables to strongly typed objects. It provides a relational database mapper for performing CRUD operations across MySQL, PostgreSQL, and SQLite, and includes a programmatic dynamic query builder for constructing complex SQL statements. The project distinguishes itself by providing a GraphQL schema generator that transforms database entities into typed schemas with built-in pagination and filters. It also features a dedicated database migration tool for defining and applying versioned schema chan

    Rustdatabasehacktoberfestloco
    在 GitHub 上查看↗9,410
查看 Kysely 的所有 30 个替代方案→

常见问题解答

kysely-org/kysely 是做什么的?

Kysely is a TypeScript SQL query builder that provides a type-safe interface for constructing and executing database queries. It functions as a database layer that ensures schema compliance and prevents runtime errors by using a fluent interface and a programmable way to build complex SQL statements.

kysely-org/kysely 的主要功能有哪些?

kysely-org/kysely 的主要功能包括:Type-Safe Database Clients, Type-Safe Query Builders, Dynamic SQL Generators, Fluent Query Builders, Relational Database Connectors, Schema Mapping Utilities, SQL Query Builders, Fluent Interfaces。

kysely-org/kysely 有哪些开源替代品?

kysely-org/kysely 的开源替代品包括: simolus3/drift — Drift is a type-safe SQL persistence library and relational mapper that provides a structured way to map database… knex/knex — Knex is a multi-dialect database client that provides a programmatic SQL query builder, a connection pool manager, and… uptrace/bun — Bun is a type-safe object relational mapper for Go that prioritizes SQL-first query construction and result mapping.… seaql/sea-orm — Sea-ORM is an asynchronous SQL object-relational mapper and database toolkit for mapping relational tables to strongly… masterminds/squirrel — Squirrel is a Go database library and SQL query builder that provides a programmatic interface for constructing and… aarondl/sqlboiler — sqlboiler is a database-first ORM generator for Go that analyzes an existing database schema to produce strongly typed…