<?php
return [
    'type' => getenv('POC_FAIL_AI_COMMIT') === '1'
        ? \app\cores\database\FaultDm::class : \app\cores\database\Dm::class,
    'hostname' => getenv('POC_HOST'),
    'hostport' => (int)getenv('POC_PORT'),
    'database' => getenv('POC_SCHEMA'),
    'username' => getenv('POC_USER'),
    'password' => getenv('POC_PASSWORD'),
    'charset' => 'utf8',
    'prefix' => 'ydy_',
    'debug' => false,
    'params' => [],
    'resultset_type' => 'array',
    'fields_strict' => true,
    'auto_timestamp' => false,
    'ai_zhct' => [
        'hostname' => getenv('POC_AI_HOST'),
        'hostport' => (int)getenv('POC_AI_PORT'),
        'database' => getenv('POC_AI_SCHEMA'),
        'username' => getenv('POC_AI_USER'),
        'password' => getenv('POC_AI_PASSWORD'),
        'prefix' => 'yoshop_',
    ],
];
