agrosner / agrosner/DBFlow

Cast Example

未关闭
#1,729 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Kotlin
星标
4.8k
派生
593
平均合并
1 分钟
30 天内合并 PR
1

描述

# ISSUE\_TEMPLATE

DBFlow Version: 3.1.1

Bug or Feature Request:

Description:
I have a fairly complex query I'm trying to port to DBFlow semantics. The biggest hurdle I've had is trying to figure out the syntax for a query piece that looks essentially like this:

`SELECT Message.X, Message.Y, Message.Z, CASE WHEN CAST(Conversation.Bookmark AS LONG) <= 0 THEN false ELSE true END isBookmarkAvailable`

I can get part way there with the syntax
`IProperty foo = Method.cast(Conversation_Table.Bookmark).as(SQLiteType.INTEGER);` but I cannot do a comparison "<= 0" on the IProperty.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。