singlestoredb/singlestoredb-laravel
Official SingleStoreDB driver for Laravel. Wraps Laravel’s MySQL support with SingleStore-specific Eloquent and migration features (columnstore/rowstore, shard & sort keys, sparse/temporary tables), JSON support, and query compatibility fixes, tested across versions.
Strengths:
Potential Gaps:
READ COMMITTED isolation for analytical queries).Low Friction for Laravel Apps:
mysql driver in config/database.php with minimal configuration (host, credentials, SSL).shardKey(), sortKey()).queue.php.Dependencies:
extension=pdo_mysql in php.ini).PDO::ATTR_EMULATE_PREPARES bugs (type casting issues for numeric columns).Key Risks:
APPROX_COUNT_DISTINCT).Mitigation Strategies:
memsql_aggregator_status) to detect connection or query bottlenecks.sortKey())?LIMIT with ORDER BY in DELETE)?ALTER TABLE operations can be slow for large tables.EXPLAIN) and connection health?Ideal Use Cases:
Less Ideal Use Cases:
ENGINE=InnoDB dependencies.Phase 1: Pilot with Non-Critical Data
Schema::create with SingleStore extensions (e.g., sortKey()).Phase 2: Incremental Schema Refinement
ORDER BY in DELETE/UPDATE with application-level logic or disable it in config.Phase 3: Core Transactional Data
config/database.php.Phase 4: Full Cutover
tests.yml in repo). Ensure compatibility with your stack (e.g., Laravel 10 + PHP 8.2).DB::select with non-standard syntax).DB::raw for complex queries may need updates.Infrastructure Setup:
Laravel Configuration:
config/database.php to use the singlestore driver.ORDER BY in DELETE/UPDATE if needed.Schema Migration:
Schema::create with sortKey()).ALTER TABLE or write custom migrations.Schema::table('users', function (Blueprint
How can I help you explore Laravel packages today?