加载中
正在获取最新内容,请稍候...
正在获取最新内容,请稍候...
Generate type-safe Go, PostgreSQL, and other language code from your SQL.
sqlc generates type-safe code from SQL. Write your SQL, run sqlc, and get Go, Kotlin, Python, or other language code that calls into your database.
Manually writing boilerplate code for database queries is repetitive, error-prone, and lacks compile-time type safety, leading to runtime bugs.
Automatically generates type-safe code for database interactions based on your SQL queries.
Supports multiple database systems, including PostgreSQL, MySQL, SQLite, and more.
Integrates seamlessly into your development workflow, making database access cleaner and less error-prone.
sqlc is ideal for projects where database interactions need to be robust, maintainable, and type-safe. Common use cases include:
Building APIs or services that perform CRUD operations on a database with Go, Python, or Kotlin.
Ensures correct data types are used for all database calls, preventing common runtime errors and speeding up development.
Developing command-line tools or background workers that process data from a database.
Provides a reliable and maintainable way to interact with the database for data retrieval and manipulation.
Migrating from ORMs or manual query building to a type-safe, SQL-centric approach.
Offers a clear path to improve code quality and safety without abandoning the power of raw SQL.
You might be interested in these projects
DataX is an open-source, high-performance, and robust data integration tool developed by Alibaba Group. It facilitates efficient data synchronization between diverse heterogeneous data sources, serving as the foundation for data migration, synchronization, and ETL processes.
BloodHound is a powerful open-source tool used for mapping and identifying attack paths in Active Directory and Azure environments, helping security professionals understand complex relationships and potential vulnerabilities.
Explore Azure Sentinel, Microsoft's cloud-native Security Information and Event Management (SIEM) and Security Orchestration, Automation, and Response (SOAR) solution. Get intelligent security analytics for your entire enterprise, reducing complexity and costs.