nguyenngocchinh/cakephp4-driver-bigquery

BigQuery direver for CakePHP 4.4

dev-master 2024-07-05 10:28 UTC

This package is auto-updated.

Last update: 2025-03-05 11:48:43 UTC


README

An BigQuery for CakePHP 4.4

Installing via composer

Install composer and run:

composer require nguyenngocchinh/cakephp4-driver-bigquery

Defining a connection

Now, you need to set the connection in your config/app.php file:

 'Datasources' => [
...
    'bigquery' => [
        'className' => 'Chinh\BigQuery\BigQueryConnection',
        'driver' => 'Chinh\BigQuery\BigQueryDriver',
        'projectId' => env('BIGQUERY_PROJECT_ID', 'project_id'),
        'dataSet' => env('BIGQUERY_DATASET', 'dataset'),
        'keyFilePath' => null, //The full path to your service account credentials .json file retrieved.
    ],
],

Models

...

Table

...

Entity

...

Controllers

...

LICENSE

The MIT License (MIT) Copyright (c) 2021