xo

支持 PostgreSQL、MySQL、SQLite、Oracle 和 Microsoft SQL Server 的命令行工具,为 SQL 数据库生成惯用的 Go 代码。「Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server」

Github星跟蹤圖

About xo

xo is a command-line tool to generate Go
code based on a database schema or a custom query.

xo works by using database metadata and SQL introspection queries to discover
the types and relationships contained within a schema, and applying a standard
set of base (or customized) Go templates against the discovered relationships.

Currently, xo can generate types for tables, enums, stored procedures, and
custom SQL queries for PostgreSQL, MySQL, Oracle, Microsoft SQL Server, and
SQLite3 databases.

NOTE: While the code generated by xo is production quality, it is not the
goal, nor the intention for xo to be a "silver bullet," nor to completely
eliminate the manual authoring of SQL / Go code.

Database Feature Support

The following is a matrix of the feature support for each database:

主要指標

概覽
名稱與所有者xo/xo
主編程語言Go
編程語言Go (語言數: 7)
平台Linux, Mac, Windows
許可證MIT License
所有者活动
創建於2016-02-05 10:22:20
推送於2024-06-09 23:11:22
最后一次提交2024-06-10 06:11:17
發布數3
最新版本名稱v1.0.2 (發布於 )
第一版名稱v1.0.0 (發布於 )
用户参与
星數3.8k
關注者數69
派生數321
提交數410
已啟用問題?
問題數259
打開的問題數46
拉請求數53
打開的拉請求數5
關閉的拉請求數100
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?