neos/eventstore-doctrineadapter 问题修复 & 功能扩展

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

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

neos/eventstore-doctrineadapter

最新稳定版本:2.0.3

Composer 安装命令:

composer require neos/eventstore-doctrineadapter

包简介

Doctrine DBAL based implementation for the neos/eventstore

README 文档

README

Database Adapter implementation for the neos/eventstore package.

Note Currently this package supports MySQL (including MariaDB), PostgreSQL and SQLite.

Usage

Install via composer:

composer require neos/eventstore-doctrineadapter

Create an instance

To create a DoctrineEventStore, an instance of \Doctrine\DBAL\Connection is required. This can be obtained from a given DSN for example:

use Doctrine\DBAL\DriverManager;

$connection = DriverManager::getConnection(['url' => $dsn]);

See Doctrine documentation for more details.

With that, an Event Store instance can be created:

use Neos\EventStore\DoctrineAdapter\DoctrineEventStore;

$eventTableName = 'some_namespace_events';
$eventStore = new DoctrineEventStore($connection, $eventTableName);

See README of the neos/eventstore package for details on how to write and read events.

Contribution

Contributions in the form of issues, pull requests or discussions are highly appreciated

License

See LICENSE

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-21