Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecuritySo sichern Sie die Outlook-Kontoeinstellungen ganz einfach(23.09.2026 um 08:00 Uhr)
Unix & Linux ServerSecurity: Aktualisierungen in openssl-certs (SUSE)(23.09.2026 um 07:46 Uhr)
Linux Tipps & HardeningSecurity: Denial of Service in perl-Net-DNS (Fedora)(23.09.2026 um 07:46 Uhr)
Linux Tipps & HardeningSecurity: Mehrere Probleme in freeipmi (Fedora)(23.09.2026 um 07:46 Uhr)
Unix & Linux ServerSecurity: Denial of Service in runc (Red Hat)(23.09.2026 um 07:46 Uhr)
Linux Tipps & HardeningSecurity: Mehrere Probleme in cyrus-imapd (Fedora)(23.09.2026 um 07:46 Uhr)
Sichere ProgrammierungThe Blank Screen Test(23.09.2026 um 08:03 Uhr)
Windows Tipps & SecuritySo sichern Sie die Outlook-Kontoeinstellungen ganz einfach(23.09.2026 um 08:00 Uhr)
Unix & Linux ServerSecurity: Aktualisierungen in openssl-certs (SUSE)(23.09.2026 um 07:46 Uhr)
Linux Tipps & HardeningSecurity: Denial of Service in perl-Net-DNS (Fedora)(23.09.2026 um 07:46 Uhr)
Linux Tipps & HardeningSecurity: Mehrere Probleme in freeipmi (Fedora)(23.09.2026 um 07:46 Uhr)
Unix & Linux ServerSecurity: Denial of Service in runc (Red Hat)(23.09.2026 um 07:46 Uhr)
Linux Tipps & HardeningSecurity: Mehrere Probleme in cyrus-imapd (Fedora)(23.09.2026 um 07:46 Uhr)
Sichere ProgrammierungThe Blank Screen Test(23.09.2026 um 08:03 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

NyaruDB2: A Mobile-First Experiment in Table Partitioning for iOS

NyaruDB2 What is NyaruDB2? NyaruDB2 is an experimental, embeddable database library for iOS & macOS, written in Swift. Its primary goal is to explore table partitioning and indexed queries in a mobile context—think of l…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




NyaruDB2






What is NyaruDB2?



NyaruDB2 is an experimental, embeddable database library for iOS & macOS, written in Swift. Its primary goal is to explore table partitioning and indexed queries in a mobile context—think of lightweight shards instead of one monolithic file.




⚠️ Disclaimer: This is very much a proof-of-concept. APIs may change, and it’s not intended for production use… yet!







Key Concepts





  • Partitioning (Sharding): Split collections into multiple files (“shards”) based on a key (e.g. a category field), reducing I/O for targeted queries.


  • Indexes: Built-in B-Tree indexes accelerate equality, range, prefix and substring searches.


  • Compression: Supports multiple algorithms (none, GZIP, LZFSE, LZ4) to trade off size vs. CPU.






Core Features




  • Actor-Backed B-Tree Indexes Provide equality and range queries (equal, greaterThan, between, startsWith, contains) using a thread-safe, in-memory B-Tree implementation.

  • Async/Await API Non-blocking insert, fetch, update, and delete operations with a fluent query builder.

  • Pluggable Compression Choose between gzip, LZFSE, or LZ4 on a per-shard basis.






Installation



Add NyaruDB2 to your Package.swift:




// swift-tools-version:5.9
import PackageDescription

let package = Package(
name: "YourApp",
dependencies: [
.package(url: "https://github.com/galileostudio/nyarudb2.git", .upToNextMinor(from: "0.1.0-alpha1"))
],
targets: [
.target(
name: "YourApp",
dependencies: [
.product(name: "NyaruDB2", package: "nyarudb2")
]
)
]
)






Then run:




swift package update









Quick Start






import NyaruDB2

// 1. Initialize
let db = try NyaruDB2(
path: "AppData",
shardKey: "category", // enable partitioning on “category”
compressionMethod: .gzip, // compress shards with GZIP
fileProtectionType: .completeUntilFirstUserAuthentication
)

// 2. Define your model
struct Item: Codable, Equatable {
let id: Int
let name: String
let category: String
}

// 3. Insert documents
let items = [
Item(id: 1, name: "Apple", category: "Fruit"),
Item(id: 2, name: "Carrot", category: "Vegetable"),
]
try await db.bulkInsert(items, into: "Inventory")

// 4. Query with auto-shard pruning
var query = try await db.query(from: "Inventory") as Query<Item>
query.where(\.category, .equal("Fruit"))
let fruits = try await query.execute()

print("Fruits:", fruits)









Learn More & Contribute



🔗 Repo: https://github.com/galileostudio/nyarudb2


📄 Docs: https://galileostudio.github.io/nyarudb2/



This project is an open playground for database ideas on mobile. Feedback, stars ⭐, issues and PRs are very welcome!






Demetrius Albuquerque*

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten NyaruDB2: A Mobile-First Experiment in Table Partitioning for iOS

Thematisch verwandte Begriffe: NyaruDB2, MobileFirst, Experiment, Table · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-18163 | IBM Financial Transaction Manager (FTM) for RedHat OpenShift could allow…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick