All Projects → yiisoft → Db Mysql

yiisoft / Db Mysql

Licence: bsd-3-clause

Projects that are alternatives of or similar to Db Mysql

Migrate
Database migrations. CLI and Golang library.
Stars: ✭ 7,712 (+34954.55%)
Mutual labels:  hacktoberfest, database, mysql
Laravel Db Profiler
Database Profiler for Laravel Web and Console Applications.
Stars: ✭ 141 (+540.91%)
Mutual labels:  database, mysql, db
Laravel Log To Db
Custom Laravel and Lumen 5.6+ Log channel handler that can store log events to SQL or MongoDB databases. Uses Laravel/Monolog native logging functionality.
Stars: ✭ 76 (+245.45%)
Mutual labels:  database, mysql, db
Db
Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.
Stars: ✭ 2,832 (+12772.73%)
Mutual labels:  database, mysql, db
Rel
💎 Modern Database Access Layer for Golang - Testable, Extendable and Crafted Into a Clean and Elegant API
Stars: ✭ 317 (+1340.91%)
Mutual labels:  hacktoberfest, database, mysql
Qb
The database toolkit for go
Stars: ✭ 524 (+2281.82%)
Mutual labels:  database, mysql, db
Node Mysql Utilities
Query builder for node-mysql with introspection, etc.
Stars: ✭ 98 (+345.45%)
Mutual labels:  database, mysql, db
Dbbench
🏋️ dbbench is a simple database benchmarking tool which supports several databases and own scripts
Stars: ✭ 52 (+136.36%)
Mutual labels:  hacktoberfest, database, mysql
Liquibase
Main Liquibase Source
Stars: ✭ 2,910 (+13127.27%)
Mutual labels:  hacktoberfest, database, mysql
Mongo Seeding
The ultimate solution for populating your MongoDB database.
Stars: ✭ 375 (+1604.55%)
Mutual labels:  hacktoberfest, database, db
Tidb
TiDB is an open source distributed HTAP database compatible with the MySQL protocol
Stars: ✭ 29,871 (+135677.27%)
Mutual labels:  hacktoberfest, database, mysql
Phpauth
PHPAuth is a secure PHP Authentication class that easily integrates into any site.
Stars: ✭ 748 (+3300%)
Mutual labels:  hacktoberfest, database
Mybb
MyBB is a free and open source forum software.
Stars: ✭ 750 (+3309.09%)
Mutual labels:  hacktoberfest, mysql
Pecee Pixie
Lightweight, easy-to-use querybuilder for PHP inspired by Laravel Eloquent - but with less overhead.
Stars: ✭ 19 (-13.64%)
Mutual labels:  database, mysql
Db Dumper
Dump the contents of a database
Stars: ✭ 744 (+3281.82%)
Mutual labels:  database, mysql
Reiner
萊納 - A MySQL wrapper which might be better than the ORMs and written in Golang
Stars: ✭ 19 (-13.64%)
Mutual labels:  database, mysql
Bookshelf
A simple Node.js ORM for PostgreSQL, MySQL and SQLite3 built on top of Knex.js
Stars: ✭ 6,252 (+28318.18%)
Mutual labels:  database, mysql
Ftl
The Pi-hole FTL engine
Stars: ✭ 776 (+3427.27%)
Mutual labels:  hacktoberfest, database
Drive Db
📊 Use Google Drive spreadsheets as a simple database
Stars: ✭ 782 (+3454.55%)
Mutual labels:  database, db
Baikaldb
BaikalDB, A Distributed HTAP Database.
Stars: ✭ 707 (+3113.64%)
Mutual labels:  database, mysql

Yii DataBase MySQL Extension


This package provides MySQL extension for Yii DataBase library. It is used in Yii Framework but is supposed to be usable separately.

Latest Stable Version Total Downloads Scrutinizer Code Quality Code Coverage

Support version

PHP Mysql Version CI-Actions
7.4 - 8.0 5.7 - 8.0 Build status Mutation testing badge static analysis type-coverage

Installation

The package could be installed via composer:

composer require yiisoft/db-mysql

Configuration

Using yiisoft/composer-config-plugin automatically get the settings of Yiisoft\Cache\CacheInterface::class, LoggerInterface::class, and Profiler::class.

Di-Container:

use Yiisoft\Db\Connection\ConnectionInterface;
use Yiisoft\Db\Mysql\Connection as MySqlConnection;

return [
    ConnectionInterface::class => [
        '__class' => MySqlConnection::class,
        '__construct()' => [
            'dsn' => $params['yiisoft/db-mysql']['dsn'],
        ],
        'setUsername()' => [$params['yiisoft/db-mysql']['username']],
        'setPassword()' => [$params['yiisoft/db-mysql']['password']],
    ],
];

Params.php

use Yiisoft\Db\Connection\Dsn;

return [
    'yiisoft/db-mysql' => [
        'dsn' => (new Dsn('mysql', '127.0.0.1', 'yiitest', '3306'))->asString(),
        'username' => 'root',
        'password' => 'root'
    ]
];

Unit testing

The package is tested with PHPUnit. To run tests:

./vendor/bin/phpunit

Mutation testing

The package tests are checked with Infection mutation framework. To run it:

./vendor/bin/infection

Static analysis

The code is statically analyzed with Psalm. To run static analysis:

./vendor/bin/psalm

Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack

License

The Yii DataBase MySQL Extension is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].