Comments (7)
I found this, is it related?
from couchbase_lite.
I'm not sure on how everything is done behind the scenes but I do know that SQLite is used to store information and SQLite does not have boolean types instead it uses 0's and 1's.
from couchbase_lite.
So you're saying this is expected behavior? so why is there setBoolean
on MutableDocument
if it doesn't support boolean data type
from couchbase_lite.
I'm sure its mostly because there is not an easy solution to differentiate between boolean and int values in SQLite / maybe C or C# depending on where the value is being stored. Refer to this documentation on the method getBoolean for a way to parse the value https://pub.dev/documentation/couchbase_lite/latest/couchbase_lite/Document-class.html
from couchbase_lite.
@bawelter how do I cast a Result
to Document
? since QueryBuilder.execute() results ResultSet
from couchbase_lite.
@bawelter how do I cast a
Result
toDocument
? since QueryBuilder.execute() resultsResultSet
Please reference the documentation https://pub.dev/documentation/couchbase_lite/latest/couchbase_lite/Database-class.html for retrieving a Document object and https://pub.dev/documentation/couchbase_lite/latest/couchbase_lite/Result-class.html for using the getBoolean function on a result set. Please refer to the documentation before posting questions here.
from couchbase_lite.
I use https://pub.dev/packages/built_value to model the data. Hopefully this helps.
from couchbase_lite.
Related Issues (20)
- Desktop support HOT 1
- Crash on query with predicate using long attributes.
- Module compiled with Swift 5.3.2 cannot be imported by the Swift 5.5.1 compiler HOT 6
- windows support? HOT 1
- [Replicator Error: Permanent Redirect] Sync not working in iOS
- `lower` function support for Expression HOT 3
- ReplicatorType.pushAndPull data push performs but pull not performing
- GroupBy not work
- And Query is not working returning empty result. HOT 1
- Database encryption HOT 2
- Hi
- Long Problem in pullAttributeFilters
- Please consider supporting nullsafety (at least in beta channel) HOT 2
- Replicator looses connection after 2 1/2 Minutes with error 'Error: Websocket connection closed by peer' HOT 5
- How to enable verbose log HOT 1
- Unable to install HOT 2
- Out of date dependencies HOT 5
- Flutter Web Support HOT 2
- Failed to build the example app on v3.0.0-nullsafety.1 HOT 1
- null-safety migrated app crash on document change (listener) HOT 1
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 couchbase_lite.