Git Product home page Git Product logo

Comments (4)

PhoenixL0911 avatar PhoenixL0911 commented on June 16, 2024

@afumu 目前所使用到的条件构造,仍有很大的不便,如:无法无法支持子句的构建,即便后续添加了apply,手写sql仍然是一个比较麻烦的事。感觉条件构造器这一块还有很大的优化空间,对于CRUD,应当分别提供不同的构造器。这一块感觉可以参考一下成熟的SQL构建库,如:go-sqlbuilder

from gorm-plus.

afumu avatar afumu commented on June 16, 2024

如果CRUD都提供不同的构造器,感觉对于使用者来说有点麻烦了

from gorm-plus.

PhoenixL0911 avatar PhoenixL0911 commented on June 16, 2024

如果CRUD都提供不同的构造器,感觉对于使用者来说有点麻烦了

增删改可以共用一个,单查询提供一个,增删改涉及的内容少,主要还是查询部分。

from gorm-plus.

icetech233 avatar icetech233 commented on June 16, 2024

如果CRUD都提供不同的构造器,感觉对于使用者来说有点麻烦了

增删改可以共用一个,单查询提供一个,增删改涉及的内容少,主要还是查询部分。

直接用gorm就好了, 就plus 就用个泛型的查询

from gorm-plus.

Related Issues (20)

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.