keboola/output-mapping 问题修复 & 功能扩展

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

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

keboola/output-mapping

Composer 安装命令:

composer require keboola/output-mapping

包简介

Shared component for processing SAPI output mapping and importing data to KBC

README 文档

README

Output mapping library for Keboola Runner and Workspaces. Processes component outputs and uploads them to Keboola Storage API.

Tables:

  • Local staging: Uploads tables as gzipped CSV files to Storage API
    • Slicing: Large CSV files are automatically split into multiple compressed chunks for parallel upload (via external slicer binary)
      • Requires: output-mapping-slice feature flag, default CSV format (, delimiter, " enclosure), no custom columns mapping
      • Sliced files must have columns or schema specified in configuration
  • Workspace staging (Snowflake/BigQuery): Loads tables directly from workspace database objects (no file upload, no slicing)

Files:

  • Uploads files as-is to Storage API File Storage (works with all staging types)

Development

Prepare local environment

Create .env.local file from this .env template and fill the required environment variables:

cp .env .env.local

Prepare resources

You need to provide the following environment variables:

  • STORAGE_API_URL - The Keboola Storage API URL (e.g., https://connection.keboola.com)
  • STORAGE_API_TOKEN - A non-admin token with "Full Access" to Files, Components & Buckets and Trash
  • STORAGE_API_TOKEN_MASTER - An admin user token from the same project (with role admin)

Optional (for BigQuery-specific tests only):

  • BIGQUERY_STORAGE_API_URL - BigQuery Storage API URL (e.g., https://connection.keboola.com)
  • BIGQUERY_STORAGE_API_TOKEN - A non-admin token with "Full Access" to Files, Components & Buckets and Trash from a project with BigQuery backend

Available composer commands

Development commands:

  • composer phpcs - Check code style
  • composer phpcbf - Automatically fix code style issues
  • composer phpstan - Run static analysis

Testing commands:

  • composer tests - Run tests with PHPUnit
  • composer paratests - Run tests in parallel with Paratest

License

MIT licensed, see LICENSE file.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固