Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungBreeze TTS 2 vs ElevenLabs: Open Source TTS Verdict(23.09.2026 um 05:44 Uhr)
Sichere ProgrammierungAgentic AI vs Generative AI: The 2026 Verdict(23.09.2026 um 05:44 Uhr)
Sichere ProgrammierungI made my agent prove every quote against the source document(23.09.2026 um 05:45 Uhr)
Sichere Programmierung8mb.video Alternative: Skip the Line, Skip the Upsell(23.09.2026 um 05:47 Uhr)
Sichere ProgrammierungBuilding a GTA 6 JSON API for entities and current status(23.09.2026 um 05:52 Uhr)
Sichere ProgrammierungEvery filter needs a documented exception(23.09.2026 um 06:01 Uhr)
Sichere ProgrammierungBreeze TTS 2 vs ElevenLabs: Open Source TTS Verdict(23.09.2026 um 05:44 Uhr)
Sichere ProgrammierungAgentic AI vs Generative AI: The 2026 Verdict(23.09.2026 um 05:44 Uhr)
Sichere ProgrammierungI made my agent prove every quote against the source document(23.09.2026 um 05:45 Uhr)
Sichere Programmierung8mb.video Alternative: Skip the Line, Skip the Upsell(23.09.2026 um 05:47 Uhr)
Sichere ProgrammierungBuilding a GTA 6 JSON API for entities and current status(23.09.2026 um 05:52 Uhr)
Sichere ProgrammierungEvery filter needs a documented exception(23.09.2026 um 06:01 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

StormQueries – A Query Builder with ORM Superpowers

StormQueries – A Query Builder with ORM Superpowers Over the years working in web development, I’ve tried countless tools for working with databases. Most of the time, they fell into one of two categories: Query Builders (QB) – light…

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




StormQueries – A Query Builder with ORM Superpowers



Over the years working in web development, I’ve tried countless tools for working with databases.

Most of the time, they fell into one of two categories:





  • Query Builders (QB) – lightweight, fast, no schema configuration required. Great for quick queries. The downside? Once you need hierarchical data (1 invoice → many items), you’re on your own.


  • ORMs (Object-Relational Mappers) – powerful for handling relationships, but heavy and often require models, annotations, or schema definitions.



And I kept thinking: why isn’t there something in between?

So I built StormQueries 🚀







Why StormQueries?



StormQueries combines the simplicity of a Query Builder with the power of an ORM.

Here’s what it gives you out of the box:




  • ✅ Build dynamic queries depending on runtime parameters.

  • Reusable query structures.

  • Hierarchical data fetching (one-to-many).

  • ✅ Map results to your own objects without modifying models.

  • Zero schema configuration – just connect to the database.

  • ✅ Support for subqueries.

  • Intuitive syntax.



One example:

With StormQueries, you can run an incremental update (field = field + 1) — something that’s oddly tricky or impossible in many other tools.







Quick examples



Basic CRUD:




$product = $queries->find('products', ['id' => 5]);

$id = $queries->insert('products', [
'name' => 'Golden watch',
'price' => 465
]);

$queries->update('products', ['id' => $id], ['name' => 'Renamed product']);

$queries->delete('products', ['id' => $id]);






Dynamic filtering:




$query = $queries
->select('products')
->join('product_photos', ['product_photos.product_id' => 'products.id'])
->where('is_in_sale', true);

if ($criteria->hasCategory()) {
$query->where('category_id', $criteria->getCategoryId());
}

$products = $query->findAll();






Subqueries:




$queries
->select(SubQuery::create($queries->select('products'), 'p'))
->where('p.product_id', 7)
->find();






ORM-style relationships (without schema config):




$customer = $queries
->select('customers c', Map::select([
'customer_id',
'customer_name'
], Customer::class, classId: 'customer_id'))
->leftJoin('orders o', 'o.customer_id = c.customer_id', Map::many("orders", [
'order_id'
], Order::class, classId: 'order_id'))
->where('c.customer_id', 90)
->find();

foreach ($customer->orders as $order) {
echo $customer->customer_name . " - " . $order->id;
}












How is it different?





  • Doctrine / Eloquent (PHP) – require schema definitions and models. StormQueries works right after connecting.


  • SQLAlchemy, Hibernate – powerful but heavy, with lots of boilerplate. StormQueries is lightweight and fast.


  • Pure Query Builders – flexible, but no hierarchical mapping. StormQueries bridges the gap.









Try it out



🔗 GitHub: storm-php-queries

📖 Docs & examples: stormmoredev.github.io/storm-php-queries









Final thoughts



StormQueries was born out of real-world needs: I wanted the simplicity of Query Builders with the convenience of ORMs, without their usual trade-offs.



If this sounds useful, check it out, give it a ⭐ on GitHub, or drop me some feedback.

Issues, discussions, and pull requests are more than welcome 🙌



This is just the beginning — I’m planning more features inspired by real application use cases. Stay tuned!

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten StormQueries – A Query Builder with ORM Superpowers

Thematisch verwandte Begriffe: StormQueries, Query, Builder, with · 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