• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umbrellio / php-table-sync / 13572720694

27 Feb 2025 05:52PM UTC coverage: 42.714%. Remained the same
13572720694

Pull #26

github

web-flow
Merge 7c1dbd6bb into 3992b358b
Pull Request #26: Fix labeler (really)

299 of 700 relevant lines covered (42.71%)

23.77 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Integration/Laravel/config/table_sync.php
1
<?php
2

3
declare(strict_types=1);
4

5
use Umbrellio\TableSync\Integration\Laravel\Receive\MessageData\AdditionalDataHandlers\DefaultDataHandler;
6

7
return [
×
8
    'connection' => [
×
9
        'host' => 'host',
×
10
        'port' => 'port',
×
11
        'user' => 'user',
×
12
        'pass' => 'pass',
×
13
        'vhost' => '/',
×
14
        'sslOptions' => [],
×
15
        'options' => [
×
16
            'heartbeat' => 60,
×
17
            'read_write_timeout' => 360,
×
18
        ],
×
19
    ],
×
20
    'channel' => [
×
21
        'prefetch_size' => null,
×
22
        'prefetch_count' => 1,
×
23
        'a_global' => true,
×
24
    ],
×
25
    'publish' => [
×
26
        'message' => [
×
27
            'appId' => 'group_id.app_id',
×
28
            'headers' => [],
×
29
        ],
×
30
        'publisher' => [
×
31
            'exchangeName' => 'group_id.app_id.exchange',
×
32
            'confirmSelect' => true,
×
33
        ],
×
34
    /**
×
35
     * 'custom_publisher' => 'SomePublisher'
×
36
     */
×
37
    ],
×
38
    'receive' => [
×
39
        'message_configs' => [
×
40
            'SomeClass' => [
×
41
                //Choose between table and model.
42
                'table' => 'some_models', //Mass saving via raw query. Fast but Eloquent model events not dispatched.
×
43
                //Saving by one via Eloquent models. Slower but with events. Also works with non-unique target keys.
44
                //'model' => SomeModel::class,
45
                'target_keys' => ['external_id', 'some_other_field'],
×
46
                'override_data' => [
×
47
                    'id' => 'external_id',
×
48
                ],
×
49
                'additional_data_handler' => DefaultDataHandler::class,
×
50
            ],
×
51
        ],
×
52
        'queue' => '',
×
53
        /**
54
         * 'custom_received_message_handler' => 'SomeHandler'
55
         */
56
        'microseconds_to_sleep' => 1000000,
×
57
        //'eloquent_chunk_size' => 500, // Chunk size for Eloquent model saver, 500 by default.
×
58
    ],
×
59
    'laravel_heavy_jobs_enabled' => false,
×
60
    'log' => [
×
61
        'channel' => 'table_sync',
×
62
    ],
×
63
    'publish_job_queue' => '',
×
64
    'receive_job_queue' => '',
×
65
];
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc