pixals/atlas 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固