PHPackages                             pixals/atlas - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. pixals/atlas

ActiveLibrary[Database &amp; ORM](/categories/database)

pixals/atlas
============

Atlas is a MySQL-Only Database Executor

119PHP

Since Feb 7Pushed 3mo agoCompare

[ Source](https://github.com/Pixals-Bedrock/Atlas)[ Packagist](https://packagist.org/packages/pixals/atlas)[ RSS](/packages/pixals-atlas/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Atlas
=====

[](#atlas)

Atlas is a high-performance multithreaded database query framework for PocketMine-MP, Built for Performance-First Servers Like Pixals.
Built to solve the latency and blocking issues caused by synchronous queries on the main thread, Atlas offloads query execution to dedicated worker threads while ensuring clean callback handling on the main thread.

---

⚡ Key Features
--------------

[](#-key-features)

- **Multithreaded Query System** using PocketMine’s threading infrastructure
- **Non-Blocking Result Handling** with clean success callbacks
- **Supports Generators** and promise-style `Await::promise` integration
- **Scalable for Active Servers** — designed to handle high concurrency with minimal lag

---

🛠️ Usage Example
----------------

[](#️-usage-example)

- To Get Data From The Query:

```
Await::f2c(function(){
  $query = new TestQuery();
  $result = yield from Await::promise(fn($accept) => (new QueriesManager)->executeQuery($query, $accept));
  var_dump($result);
});
```

- Query Example:

```
