承接 pixals/atlas 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pixals/atlas

Composer 安装命令:

composer require pixals/atlas

包简介

Atlas is a MySQL-Only Database Executor

README 文档

README

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

  • 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

  • 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:
<?php


namespace Test;

use AtlasDB\PixalsLibs\result\DeferredResult;
use AtlasDB\PixalsLibs\threads\AtlasQuery;
use mysqli;

class TestQuery extends AtlasQuery {

    public function __construct()
    {

    }

    public function doQuery(mysqli $connection): void
    {
        $query = $connection->query("SELECT * FROM data;");
        $this->setResult($query->fetch_assoc());        
    }
}

Created By:

  • Innovation Wing of Pixals Network

License


You are free to use, modify, and distribute this project — commercially or non-commercially — as long as credit is given to the original author. Contributions are welcome.

统计信息

  • 总下载量: 19
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-07-19