go - 类似运算符在谷歌云数据存储中搜索列的替代方法

标签 go google-cloud-datastore

<分区>

我使用带有数据存储的 Go lang 作为数据库,我必须通过后端(即 BY API)在 UI 表上应用搜索。所以我浏览了文档,发现数据存储中不支持 LIKE OPERATOR。我也使用正则表达式进行搜索,但这也不被支持。

不过,我还是想做,请帮帮我这些人,我真的很需要

// Here ParcelKind is the table name

var name string

name ="s"

q:= datastore.NewQuery(ParcelKind).Filter("Name", name%)

最佳答案

试试这个 q:= datastore.NewQuery(ParcelKind).Filter("名称 >=", 名称%)

关于go - 类似运算符在谷歌云数据存储中搜索列的替代方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54643767/

相关文章:

go - 无法使用 Revel 检索表单参数

google-app-engine - gcloud 应用程序部署失败 "cannot import internal package"

arrays - Golang-无效的数组绑定(bind)

golang 在死锁检测中有奇怪的行为

python - Google 数据存储 ndb.AND 与 and

python - Google App Engine 地理查询

go - 文件夹中没有可构建的 Go 源文件

android - GAE 从数据存储中读取

python - App Engine 批量放置太大?

google-app-engine - GAE数据存储中种类和实体的区别?