Download the PHP package colopl/laravel-tidb without Composer
On this page you can find all versions of the php package colopl/laravel-tidb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download colopl/laravel-tidb
More information about colopl/laravel-tidb
Files in colopl/laravel-tidb
Download colopl/laravel-tidb
More information about colopl/laravel-tidb
Files in colopl/laravel-tidb
Vendor colopl
Package laravel-tidb
Short Description Laravel database driver for PingCAP TiDB
License Apache-2.0
Package laravel-tidb
Short Description Laravel database driver for PingCAP TiDB
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package laravel-tidb
laravel-tidb
Laravel database driver for TiDB
Requirements
- PHP >= 8.0
- Laravel 11
- TiDB >= 7.0
Installation
Install via composer
That's all. You can use database connection as usual.
Features
- Added
autoRandom($shard_bits = null)
toColumnDefinition
- When user defines
$table->id()
in the migration file, it will addPRIMARY KEY AUTO_RANDOM
to the schema instead ofPRIMARY KEY AUTO_INCREMENT
so that data gets distributed evenly. - Added Support for nested transactions (MySQL driver will throw an exception)
- Added Support for adding/dropping multiple columns (MySQL driver will throw an exception)
Unsupported features
- Nesting transactions and then rolling them back will always rollback to the first transaction since
SAVEPOINT
is not supported by TiDB. In other words, rolling back with$connection->rollBack()
will always rollback level to0
. - Adding and dropping multiple columns atomically is not fully supported. Defining multiple columns in migrations is supported but will be executed one by one and will not be atomic. Ex:
$table->dropColumn('title', 'content')
For unsupported features for TiDB itself, please see MySQL Compatibility.
Testing
You can run tests on docker by the following command.
License
Apache 2.0 - See LICENSE for more information.
All versions of laravel-tidb with dependencies
PHP Build Version
Package Version
The package colopl/laravel-tidb contains the following files
Loading the files please wait ....