Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/jrkt/gostruct

Package gostruct is an ORM that builds a package for a specific MySQL database table. A package with the underlying struct of the table will be created in the $GOPATH/src/models/{table} directory along with several methods to handle common requests. The files that are created in the package, for a 'User' model (for example) would be: User_base.go - CRUD operations and common ReadBy functions. It also validates any enum/set data type with the value passed to ensure it is one of the required fields User_extended.go - Custom functions & methods User_test.go - Serves as a base for your unit testing examples_test.go - Includes auto-generated example methods based on the auto-generated methods in the CRUX file It will also generate a connection package to share connection(s) to prevent multiple open database connections. Dependencies: Installation: Create a generate.go file with the following contents (including your db username/password): Then, run:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/jrkt/gostruct
Keywords: code-generation, golang, mysql, mysql-database-table
License: GPL-3.0
Latest release: over 6 years ago
First release: over 6 years ago
Namespace: github.com/jrkt
Stars: 6 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 27 days ago

    Loading...
    Readme
    Loading...