定制 dancal/duckdb 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

dancal/duckdb

最新稳定版本:0.7.0-alpha.3

Composer 安装命令:

composer require dancal/duckdb

包简介

A PHP library for communication with DuckDB

README 文档

README

changes

An unofficial DuckDB communication library for PHP.

Latest Version on Packagist Tests Total Downloads

Installation

You can install the package via composer:

composer require kambo/duckdb kambo/duckdb-php-linux-lib

Note: the kambo/duckdb-php-linux-lib package contains a binary library for Linux.

Usage

$database = new Kambo\DuckDB\Database();
$connection = new Kambo\DuckDB\Connection($database);

$connection->query('CREATE TABLE integers(i INTEGER, j INTEGER);');
$connection->query('INSERT INTO integers VALUES (3,4), (5,6), (7, NULL) ');

$result = $connection->query('SELECT * FROM integers;');

var_export($result->toArray());

Current limitations

  • This library is in alpha version.
  • It currently only works under Linux (work is ongoing for other platforms).
  • It has limited support of DuckDB APIs.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 2
  • 开发语言: C

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-14