Comments (8)
+1
from datatypes.
Found in json.go, but unable to use
from datatypes.
I think this problem maybe caused by the tag of this repository? Can you help update the tag v1.1.0 plz @jinzhu? thx a lot 😁
from datatypes.
哪一个 tag 可以找到其定义?
from datatypes.
没有任何一个 tag 可以找到该定义,这好像是最近的 feature,还没被打 tag
@dablelv 试试 go get gorm.io/datatypes@c43177d3cf8c975e7eb504b76f23150e3c01d662
from datatypes.
没有任何一个 tag 可以找到该定义,这好像是最近的 feature,还没被打 tag
@dablelv 试试 go get gorm.io/datatypes@c43177d3cf8c975e7eb504b76f23150e3c01d662
明白了,最新的代码还没有打 tag。
不过我使用原生 sql 作为 GORM 的内联条件可以达到同样的目的:判断数组中是否包含某值。
db.Find(&rows, fmt.Sprintf(`json_contains(YOUR_COLUMN,'"%v"')`, YOUR_STR_VALUE))
from datatypes.
其实还是希望能支持能更多的 sql 数据库,目前好像只支持 mysql,我们用 sqlite 做单测的时候完全没法用
from datatypes.
v1.2.0 有了 https://github.com/go-gorm/datatypes/tags
from datatypes.
Related Issues (20)
- How we can application IN statement that in SQL with JSON query?
- how to set json type? HOT 1
- Use civil.Date for date fields HOT 1
- Exclude Unused Imports
- JSONSet support for PostgreSQL
- The JSON_SET feature is already supported and merged, any plans to release a new version?
- 数字数组查询不对劲 HOT 2
- 支持JSON_REMOVE
- Found in json.go, but unable to use
- Need Tag for latest PR HOT 2
- JSONType field Data: define a valid foreign key for relations or implement the Valuer/Scanner HOT 4
- Custom enum type sql
- v1.0.7 没有JsonSet功能?
- Please add the JSONArray support for sqlite, thx.
- Is there a solution that allows me to use gob encode / decode with data containing `JsonType` ?
- Greater/Lesser function for JSONQuery
- Add
- Add Enum type support for Postgres
- datatypes.JSONSlice not found HOT 2
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 datatypes.