Comments (4)
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Package that You wish to enhance
gf gen dao tools
Enhancement description
If set to a pointer, you can determine whether the value in the database is null; now it is not a pointer, so when the field type is int and the database is null, the program will get 0.
Additional
from gf.
go 语言 int 类型的零值是 0,这并不是什么问题
from gf.
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
The zero value of the go language int type is 0, which is not a problem
from gf.
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
The zero value of the go language int type is 0, which is not a problem
If the field is a timestamp, its value is 0, which is fine; if the field is a string, its value will be "". If there are no expected problems caused by entity pointers, it will be more convenient to change to pointers.
from gf.
Related Issues (20)
- [v2.7.0] gconv.Struct is not compatible with previous versions HOT 1
- Some ideas on improving the Scan method of orm HOT 5
- contrib/sdk/httpclient: Support extended response handler
- os/gtime:I suggest adding a few additional flags to the GTCP protocol header
- [v2.5.2]Investigating Blocking Issues with GoFrame 2.5 During POST Requests to Third-Party APIs
- cmd/gf: pbentity gen fail in monoRepo
- Suggestions on how to process files after gf gen dao in database tables, it has been tested and feasible
- gvalid slice enums verification failed : no pkg path found for type "[]t.Status"
- database/gdb: Inconsistency in the err returned when no data is queried during the query
- database/gdb: When (update/insert) operation, if the number of fields in the data table is 0, an error will be returned directly HOT 1
- I encountered this error when using websocket, and I want to know how to solve it. HOT 2
- os/gtime: There is a bug in converting string to gtime.Time HOT 3
- V2.7 cannot use ORM JSON storage HOT 4
- JetBrains OpenSourced Licenses - 2024 HOT 8
- cmd/gf: gen enums fail
- g.Dump: An error occurred during type serialization of json.MarshalJSON
- gf gen enums error report HOT 1
- gogf/gf: gen ctrl will also generate interface methods for the commented req&res HOT 1
- database/gdb: scan zero value for google.protobuf.Timestamp HOT 3
- db/gdb query table, field to cache
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gf.