level51/silverstripe-data-documents-pocketbase
最新稳定版本:0.2.0
Composer 安装命令:
composer require level51/silverstripe-data-documents-pocketbase
包简介
Pocketbase Adapter for Data Documents
关键字:
README 文档
README
See main repository Data Documents for instructions.
Installation
composer require level51/silverstripe-data-documents-pocketbase
Configuration
| Environment Variable | Description | Required | Example |
|---|---|---|---|
| POCKETBASE_URL | URL of your Pocketbase instance | Yes | http://localhost:8181 |
| POCKETBASE_ADMIN_USER | Superuser identifier | Yes | - |
| POCKETBASE_ADMIN_PASS | Superuser password | Yes | - |
Usage
Check out the main repository Data Documents for general usage description. Also note the following:
Collection name
Make sure that you pass the collection name when you create the adapter instance using the getDocumentStore method in your data model.
public function getDocumentStore(): DataDocumentStore { return PocketbaseAdapter::create('myCollectionName'); }
Document write options
Custom write options can be defined for each model by defining a getDocumentWriteOptions method.
public function getDocumentWriteOptions(): array { return [ 'merge' => false // defaults to true ]; }
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2025-02-25