awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
knq avatar

knq/xo

0
View on GitHub↗
3,890 stars·335 forks·Go·MIT·15 views

Xo

xo is a tool for generating type-safe Go models and query execution code from SQL database schemas and queries. It functions as a multi-dialect SQL tool supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server to produce idiomatic source code.

The project uses a template-based generation system, allowing the structure and logic of the generated database source code to be defined through customizable text templates. It also includes a database schema visualizer that analyzes table relationships and definitions to create visual diagrams and structured documentation.

The tool's capabilities cover automated SQL code generation and the creation of specialized database models. It provides utilities for mapping custom SQL queries to Go functions and generating schema scripts to document database migrations.

Features

  • SQL-to-Go Struct Generators - Generates type-safe Go structs and execution code from SQL schemas to avoid manual mapping.
  • Database Abstraction Layers - Provides a unified interface for interacting across multiple SQL database engines and dialects.
  • SQL Dialect Adapters - Supports PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server to produce idiomatic source code.
  • Typesafe Query Generations - Generates type-safe execution code by parsing custom SQL queries and identifying related database tables.
  • Query-to-Code Analysis - Parses custom SQL queries to identify required tables and generate corresponding execution code.
  • Schema-Driven Code Generators - Analyzes database schemas and table relationships to produce type-safe Go source code.
  • Template-Based Code Generators - Provides a system using customizable text templates to define the structure and logic of generated database source code.
  • Database Schema Code Generators - Creates type-safe model code and enums by analyzing database metadata and relationships.
  • Template-Based Code Customizers - Supports the use of text templates to modify the structure and logic of generated code.
  • Visual Relationship Diagrams - Transforms database table definitions into visual representations of the underlying data structure.
  • Database Schema Visualizers - Provides a visualizer for exploring database structures and generating entity-relationship diagrams.
  • Custom Model Templating - Uses templates to create specialized database models that fit specific architectural patterns or naming conventions.
  • Template Logic Customization - Uses customizable text templates to define the structure and formatting of the generated source files.
  • SQL Query Builders - Generates Go code from database schemas and queries.
  • Database Tools - Code generator for idiomatic Go database access.

Star history

Star history chart for knq/xoStar history chart for knq/xo

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does knq/xo do?

xo is a tool for generating type-safe Go models and query execution code from SQL database schemas and queries. It functions as a multi-dialect SQL tool supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server to produce idiomatic source code.

What are the main features of knq/xo?

The main features of knq/xo are: SQL-to-Go Struct Generators, Database Abstraction Layers, SQL Dialect Adapters, Typesafe Query Generations, Query-to-Code Analysis, Schema-Driven Code Generators, Template-Based Code Generators, Database Schema Code Generators.

Which projects share features with knq/xo?

Projects with overlapping indexed features include: xo/dbtpl — dbtpl is a database model generator and schema introspector that produces type-safe source code and data models from… stephenafamo/bob — This project is a database toolkit for Go that provides schema-to-object mapping, fluent query construction, and… jooq/jooq — jOOQ is a type-safe SQL query builder for Java that generates code from live database schemas, enabling compile-time… koxudaxi/datamodel-code-generator — This project is a command-line schema-to-code converter designed to transform diverse data specifications into… masterminds/squirrel — Squirrel is a Go database library and SQL query builder that provides a programmatic interface for constructing and… datlechin/tablepro — TablePro is a cross-platform database management client designed for browsing, querying, and administering both SQL…

Projects sharing features with Xo

These projects share indexed features with Xo. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • xo/dbtplxo avatar

    xo/dbtpl

    3,892View on GitHub↗

    dbtpl is a database model generator and schema introspector that produces type-safe source code and data models from SQL database schemas. It functions as a command line tool that maps SQL types to Go structs and execution functions, while providing a template-based system for creating custom source code and schema definitions. The tool supports multiple database engines, including PostgreSQL, MySQL, SQLite, Oracle, and SQL Server. It distinguishes itself by allowing users to define custom output formats through text templates and the ability to generate compatible model definitions for the D

    Gocode-generatorgolangmicrosoft-sql-server
    View on GitHub↗3,892
  • stephenafamo/bobstephenafamo avatar

    stephenafamo/bob

    1,739View on GitHub↗

    This project is a database toolkit for Go that provides schema-to-object mapping, fluent query construction, and automated code generation. It functions as a framework for type-safe database access, enabling developers to interact with relational databases by generating models and interfaces directly from existing database schemas. The toolkit distinguishes itself through a workflow that parses hand-written SQL files to generate type-safe functions, allowing for the integration of custom SQL while maintaining consistent result mapping. It supports modular customization through a plugin-based

    Godatabasegolanghacktoberfest
    View on GitHub↗1,739
  • jooq/jooqjOOQ avatar

    jOOQ/jOOQ

    6,666View on GitHub↗

    jOOQ is a type-safe SQL query builder for Java that generates code from live database schemas, enabling compile-time validation of SQL syntax and data types. Its core identity is built around a fluent DSL that mirrors SQL structure, a code generator that maps tables, views, and routines to Java objects, and a multi-dialect engine that translates the same DSL into vendor-specific SQL for over 30 databases. The project also includes a SQL parser and transformer for refactoring or dialect conversion, reactive stream integration for non-blocking query execution, and a JDBC proxy diagnostics tool f

    Javacode-generatordatabasedb2
    View on GitHub↗6,666
  • koxudaxi/datamodel-code-generatorkoxudaxi avatar

    koxudaxi/datamodel-code-generator

    3,943View on GitHub↗

    This project is a command-line schema-to-code converter designed to transform diverse data specifications into type-safe Python data structures. It functions as a generator for Pydantic models, dataclasses, and typed dictionaries, enabling developers to maintain synchronization between evolving data contracts and application code. By parsing formats such as JSON Schema, OpenAPI, AsyncAPI, Protobuf, and Avro, the tool automates the creation of native classes that reflect the constraints and metadata defined in the source specifications. The generator distinguishes itself through a highly confi

    Pythoncode-generatorcsvdataclass
    View on GitHub↗3,943
Compare all 30 related projects→