PHP code example of adata-team / laravel-clickhouse-migrations

1. Go to this page and download the library: Download adata-team/laravel-clickhouse-migrations library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

adata-team / laravel-clickhouse-migrations example snippets


app('clickhouse')->select(/* Query */);
app('clickhouse')->write(/* Query */);
shell script
php artisan vendor:publish --provider='Adata\ClickhouseMigrations\Providers\MigrationProvider'
shell script
php artisan clickhouse-migrate
shell script
php artisan clickhouse-migration:rollback
shell script
php artisan make:clickhouse-migration create_users_dictionary --dictionary=users
shell script
php artisan make:clickhouse-migration create_users_table --path=database/new-migrations-folder
shell script
php artisan make:clickhouse-migration create_users_table --stub=myStub --stub.handler='App\Clickhouse\MyHandler'
shell script
php artisan clickhouse-migrate --force
shell script
php artisan clickhouse-migrate --output
shell script
php artisan clickhouse-migrate --output --force
shell script
php artisan clickhouse-migrate --step=1