Skip to content

recipe: surrealdb-embedded 3.0.0 - #138

Merged
ndonkoHenri merged 5 commits into
flet-dev:mainfrom
Yandrik:surrealdb
Nov 17, 2026
Merged

ndonkoHenri merged 5 commits into
flet-dev:mainfrom
Yandrik:surrealdb

Conversation

@Yandrik

@Yandrik Yandrik commented Nov 16, 2026

Copy link
Copy Markdown

I really like surrealdb so I wanted to use it in flet apps instead of sqlite, hence this PR.

SurrealDB can be embedded as a database using local file-based SurrealKV storage. That requires the surrealdb-embedded package, which in turn requires surrealdbs core, which is written in Rust.

This recipe compiles surrealdb-embedded for Android and iOS. It already works on desktop as is. Tested both on an android and ios emulator with the tiny notes app. Seems to work perfectly :)

Hope this is good. If you have any feedback please lmk

@CLAassistant

CLAassistant commented Nov 16, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@ndonkoHenri

Copy link
Copy Markdown

Thanks @Yandrik, great addition! I pushed a few changes to your branch:

  • No 32-bit ARM build (excluded_arches: [armeabi-v7a]): surrealdb-cnf uses AtomicU64, which 32-bit ARM lacks, so those builds failed. SurrealDB publishes no such wheels either.
  • One wheel per Python version on both platforms, via a new no-abi3.patch. ios-libc.patch now keeps only the libc pin.
  • Docs and example: a recipe README, and the notes example split into UI and notebook.py. It also gets an AppBar/SafeArea, exact pins, the now-required target_arch, and its own README.

On-device tests pass 4/4 on Android and iOS for Python 3.12, 3.13 and 3.14 (run). We're staying on 3.0.0 until 3.0.1/3.0.2 reach PyPI.

@ndonkoHenri ndonkoHenri changed the title recipe: surrealdb embedded for ios and android recipe: surrealdb-embedded 3.0.0 Nov 17, 2026
@ndonkoHenri
ndonkoHenri merged commit ffe2093 into flet-dev:main Nov 17, 2026
9 of 12 checks passed
@ndonkoHenri

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants