GithubHelp home page GithubHelp logo

bradley39e / go-orm-helper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maiqingqiang/go-orm-helper

0.0 0.0 0.0 41.23 MB

🚀🚀 A GoLand plugin that automatically provides database field completion, tags, and generates Structs for writing ORM code. Supports: Gorm、Xorm、Beego、GoFrame, etc. ⭐️ Star to support our work!一个为了让你在 Goland 上写 ORM 能自动补全数据库字段、Tag、生成Struct 的插件。支持:Gorm、Xorm、Beego、GoFrame...)请给个 ⭐️Star 支持我们的工作吧!

Home Page: https://blog.johnmai.top/go-orm-helper/

License: GNU General Public License v3.0

Java 92.35% Go 3.27% Kotlin 4.37%

go-orm-helper's Introduction

English | 简体中文 | 日本語 | 한국어

Go ORM Helper

Go ORM Helper

A GoLand plugin that automatically provides database field autocompletion, tags, and generates Structs for writing ORM code. Supports: Gorm、Xorm、Beego、GoFrame, etc.
⭐️ Star to support our work!

Inspired by Laravel Idea & PhpStorm metadata. When using ORM packages in Golang, I noticed that some ORM function parameters are strings and the IDE does not support code completion. It becomes inconvenient to write code when dealing with numerous fields. Previously, when I was writing PHP, I used similar plugins and found them extremely useful. Hence, this plugin was developed.

Features

  • ORM Code Completion.
    • Assisted code completion with @Model annotation.
    • Assisted code completion with @Table annotation.
    • Assisted code completion for custom SQL. 🚧[WIP]
  • SQL to Struct conversion. Supported
  • Go ORM Tags Live Template. Supported
  • More features waiting to be discovered and improved...

Supported ORM Code Completion.

Usage

Code Completion

https://www.jetbrains.com/help/go/auto-completing-code.html#code-completion-for-functions

guide.gif

Annotation

If the plugin is not compatible with your syntax, you can use the @Model or @Table helper. annotation.gif

The plugin will scan the Structs in your project. It is recommended to set the scanning scope. setting.png

Live Template

live-template.gif

SQL to Struct

Paste

paste.gif

Menu Action

Selected SQL -> Editor Popup Menu -> Go ORM Helper Tool -> SQL Convert Struct manual-sql-to-struct.png

Installation

Compatibility Range:

  • GoLand — 2022.2+
  • IntelliJ IDEA Ultimate — 2022.2+

Install Plugin from Jetbrains Marketplace

Get from Marketplace

Install Plugin from Disk

go-orm-helper's People

Contributors

hsz avatar maiqingqiang avatar dependabot[bot] avatar yanncebron avatar actions-user avatar kotlinisland avatar nbadal avatar mysteraitch avatar leonard84 avatar githubpang avatar rybak avatar konafets avatar brichbash avatar jonatha1983 avatar blarc avatar lukeribchester avatar olivernybroe avatar strajk avatar pavel-snyk avatar pr1st0n avatar juretta avatar tomblachut avatar tiulpin avatar yiiguxing avatar cmnzs avatar nizienko avatar jongwooo avatar nexoscp avatar ileasile avatar fkorotkov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.