willowtreeapps/rootx

语言: Go

git: https://github.com/willowtreeapps/rootx

更方便地包装sqlx
Wrap sqlx in even more convenience
README.md (中文)

WillowTree正在招聘!

想写Go for mobile应用程序?想为手机写任何其他东西 应用程序?看看我们的开口!

RootX

https://github.com/jmoiron/sqlx的帮助程序函数和代码生成工具。

博客文章即将推出!

安装

go get github.com/willowtreeapps/rootx/...

命令用法

$ rootx-gen -h
Usage of rootx-gen:
  -dir string
        Directory containing sql files
  -dryRun
        Output to STDOUT instead of writing files
  -formatter string
        Command to use to format source code (gofmt, goimports) (default "goimports")
  -mode string
        Mode for generator: code | mock | interface (default "code")
  -o string
        Output file
  -pkg string
        Go package to use
  -psql
        Whether to use Postgres insert strategy, using "RETURNING id" (default true)
  -readType string
        Type of instance to use for read methods
  -writeType string
        Type of instance to use for write methods

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

WillowTree is Hiring!

Want to write Go for mobile applications? Want to write anything else for mobile
applications? Check out our openings!

RootX

Helper functions and code generation tools for https://github.com/jmoiron/sqlx.

Blog post coming soon!

Installation

go get github.com/willowtreeapps/rootx/...

Command Usage

$ rootx-gen -h
Usage of rootx-gen:
  -dir string
        Directory containing sql files
  -dryRun
        Output to STDOUT instead of writing files
  -formatter string
        Command to use to format source code (gofmt, goimports) (default "goimports")
  -mode string
        Mode for generator: code | mock | interface (default "code")
  -o string
        Output file
  -pkg string
        Go package to use
  -psql
        Whether to use Postgres insert strategy, using "RETURNING id" (default true)
  -readType string
        Type of instance to use for read methods
  -writeType string
        Type of instance to use for write methods