<commit_before><?php
namespace DreamFactory\Core\SqlDb\Models;

use DreamFactory\Core\Components\RequireExtensions;
use DreamFactory\Core\Exceptions\BadRequestException;
use DreamFactory\Core\Models\BaseServiceConfigModel;
use DreamFactory\Core\Models\ServiceCacheConfig;

/**
 * SqlDbConfig
 *
 * @property integer $service_id
 * @property string  $dsn
 * @property string  $host
 * @property integer $port
 * @property string  $database
 * @property string  $username
 * @property string  $password
 * @property string  $prefix
 * @property string  $options
 * @property string  $attributes
 * @method static SqlDbConfig whereServiceId($value)
 */
class SqlDbConfig extends BaseServiceConfigModel
{
    use RequireExtensions;

    protected $table = 'sql_db_config';

    protected $fillable = [
        'service_id',
        'dsn',
        'host',
        'port',
        'database',
        'username',
        'password',
        'prefix',
        'options',
        'attributes',
        'default_schema_only'
    ];

    protected $casts = [
        'options'             => 'array',
        'attributes'          => 'array',
        'service_id'          => 'integer',
        'port'                => 'integer',
        'default_schema_only' => 'boolean'
    ];
<commit_msg>cleanup from deprecated db fields<commit_after><?php
namespace DreamFactory\Core\SqlDb\Models;

use DreamFactory\Core\Components\RequireExtensions;
use DreamFactory\Core\Exceptions\BadRequestException;
use DreamFactory\Core\Models\BaseServiceConfigModel;
use DreamFactory\Core\Models\ServiceCacheConfig;

/**
 * SqlDbConfig
 *
 * @property integer $service_id
 * @property string  $dsn
 * @property string  $host
 * @property integer $port
 * @property string  $database
 * @property string  $username
 * @property string  $password
 * @property string  $prefix
 * @property string  $options
 * @property string  $attributes
 * @method static SqlDbConfig whereServiceId($value)
 */
class SqlDbConfig extends BaseServiceConfigModel
{
    use RequireExtensions;

    protected $table = 'sql_db_config';

    protected $fillable = [
        'service_id',
        'dsn',
        'host',
        'port',
        'database',
        'username',
        'password',
        'prefix',
        'options',
        'attributes',
        'default_schema_only'
    ];

    // deprecated, service has type designation now
    protected $hidden = ['driver'];

    protected $casts = [
        'options'             => 'array',
        'attributes'          => 'array',
        'service_id'          => 'integer',
        'port'                => 'integer',
        'default_schema_only' => 'boolean'
    ];

{'fraction_non_alphanumeric': 0.11588785046728972, 'fraction_numerical': 0.0, 'mean_word_length': 2.691034482758621, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3278358', 'n_tokens_mistral': 744, 'n_tokens_neox': 733, 'n_words': 173}