gpa

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

README

GPA: yet another Golang Persistence API

Installation

go get github.com/liupangzi/gpa

Document

1. .sql to Go struct

gpa mysql model -h can translate mysql ddl file to Go struct respecting the data alignment, e.g.:

  • .sql ddl file sql

  • Generated Golang struct model

2. Interface to Implementation

gpa mysql impl -h will generate Go implementations from pre-defined interface based on sqlx, e.g.:

  • Golang interface with annotations interface

  • Generated implementations implementation

Documentation

Overview

Copyright © 2019 liupangzi

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
listener
ddl
parser
ddl
gpa
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL