Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binary type support #1320

Merged
merged 19 commits into from
Jun 19, 2023
Merged

binary type support #1320

merged 19 commits into from
Jun 19, 2023

Conversation

blagoev
Copy link
Contributor

@blagoev blagoev commented Jun 13, 2023

Adds Binary type support

fixes #1185

@cla-bot cla-bot bot added the cla: yes label Jun 13, 2023
Base automatically changed from blagoev/bundle_id-sync-conn to main June 15, 2023 07:24
@@ -16,7 +16,8 @@
## 1.2.0 (2023-06-08)

### Enhancements
* Added support for Full-Text search (simple term) queries. ([#1300](https://github.com/realm/realm-dart/pull/1300))
* Added support binary data type. ([#1320](https://github.com/realm/realm-dart/pull/1320))
* Added support for Full-Text search (simple term) queries. ([#1300](https://github.com/realm/realm-dart/pull/1300))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was just formatted

@coveralls
Copy link

coveralls commented Jun 16, 2023

Pull Request Test Coverage Report for Build 5311844051

  • 58 of 59 (98.31%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.09%) to 89.045%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/src/native/realm_core.dart 48 49 97.96%
Totals Coverage Status
Change from base Build 5275977588: 0.09%
Covered Lines: 3170
Relevant Lines: 3560

💛 - Coveralls

@blagoev blagoev marked this pull request as ready for review June 16, 2023 10:07
Copy link
Contributor

@nielsenko nielsenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already discussed on round-table yesterday. To summarize:

  • I like that we use Uint8LIst on the interface.
  • I don't off the top of my mind have a better way to handle default values for binary.
  • We could consider creating a Matcher that knows how to compare Uint8Lists to avoid special cases in the tests, but I don't think it important.
  • Hopefully we can improve performance once we use the new binding generator.

generator/lib/src/realm_model_info.dart Outdated Show resolved Hide resolved
Copy link
Contributor

@desistefanova desistefanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me.

generator/lib/src/realm_model_info.dart Outdated Show resolved Hide resolved
Co-authored-by: Desislava Stefanova <95419820+desistefanova@users.noreply.github.com>
@blagoev blagoev merged commit e5fc56b into main Jun 19, 2023
@blagoev blagoev deleted the blagoev/binary-type branch June 19, 2023 13:00
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Uint8List datatype
4 participants