SingleStore DB Driver for Laravel

Overview

SingleStore DB Driver for Laravel

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package provides SingleStore specific schema options, currently supporting keys & shard keys, alongside setting rowstore and clusterstore tables. In addition, tables are automatically deleted one-by-one when db:wipe is ran, as Laravel traditionally deletes all at once - which isn't compatible with SingleStore.

A huge thanks to Fathom Analytics for the motivation to build this package, as I never knew about SingleStore until their blog post.

Support us

If this package helped you, feel free to donate to my PayPal, every donation regardless of amount is appreciated for my time.

Installation

You can install the package via composer:

composer require heychazza/singlestore-driver

Then, within your database.php file, edit the driver property and set it to singlestore:

[ "driver" => "singlestore", // ... other options ... // ]">
        "mysql" => [
            "driver" => "singlestore",
            // ... other options ... //
        ]

Example Usage

id(); // Creating a basic KEY $table->key('nickname'); // Or, creating a SHARD KEY $table->key('nickname')->sharded(); // Or, SHARD with ROWSTORE. $table->key("nickname")->sharded()->storeType(StoreType::ROWSTORE); // Or, KEY with COLUMNSTORE. $table->key("nickname")->sharded()->storeType(StoreType::COLUMNSTORE); });">
Schema::create("example_table", function (Blueprint $table) {
    // ... other options ... //
    $table->id();

    // Creating a basic KEY
    $table->key('nickname');
    
    // Or, creating a SHARD KEY
    $table->key('nickname')->sharded();
    
    // Or, SHARD with ROWSTORE.
    $table->key("nickname")->sharded()->storeType(StoreType::ROWSTORE);
    
    // Or, KEY with COLUMNSTORE.
    $table->key("nickname")->sharded()->storeType(StoreType::COLUMNSTORE);
});

Features

  1. Ability to set a KEY and SHARD KEY.
  2. Ability to specify ROWSTORE and COLUMNSTORE tables.
  3. Ability to use php artisan db:wipe that is compatible with SingleStore.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Comments
Owner
Charlie Joseph
JS & PHP Developer • Grew a platform to 800,000 monthly visits & recently sold for 5 figures.
Charlie Joseph
Google Cloud Storage filesystem driver for Laravel

Google Cloud Storage filesystem driver for Laravel Google Cloud Storage filesystem driver for Laravel. This started as a fork from Superbalist/laravel

Spatie 88 Dec 16, 2022
A Laravel Broadcast Driver for Centrifugo

Laravel Centrifugo Features Compatible with latest Centrifugo 3.0.3 Contains instructions and configuration file for setting up with Laravel Sail Requ

null 7 Jun 29, 2022
Driver for Laravel Scout search package based on tntsearch

Driver for Laravel Scout search package based on https://github.com/teamtnt/tntsearch

TNT Studio 1k Dec 27, 2022
Neo4j Graph Eloquent Driver for Laravel 5.

NeoEloquent Neo4j Graph Eloquent Driver for Laravel 5. Quick Reference Installation Configuration Models Relationships Edges Migration Schema Aggregat

Vinelab 586 Dec 7, 2022
Driver for managing cash payments in the Cashier Provider ecosystem

Cash Driver Provider Installation To get the latest version of Cash Driver Provider, simply require the project using Composer: $ composer require cas

Cashier Provider 4 Aug 30, 2022
List of 77 languages for Laravel Framework 4, 5, 6, 7 and 8, Laravel Jetstream , Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova and Laravel Spark.

Laravel Lang In this repository, you can find the lang files for the Laravel Framework 4/5/6/7/8, Laravel Jetstream , Laravel Fortify, Laravel Cashier

Laravel Lang 6.9k Jan 2, 2023
⚡ Laravel Charts — Build charts using laravel. The laravel adapter for Chartisan.

What is laravel charts? Charts is a Laravel library used to create Charts using Chartisan. Chartisan does already have a PHP adapter. However, this li

Erik C. Forés 31 Dec 18, 2022
Laravel Kickstart is a Laravel starter configuration that helps you build Laravel websites faster.

Laravel Kickstart What is Laravel Kickstart? Laravel Kickstart is a Laravel starter configuration that helps you build Laravel websites faster. It com

Sam Rapaport 46 Oct 1, 2022
Laravel User Activity Log - a package for Laravel 8.x that provides easy to use features to log the activities of the users of your Laravel app

Laravel User Activity Log - a package for Laravel 8.x that provides easy to use features to log the activities of the users of your Laravel app

null 9 Dec 14, 2022
Laravel Segment is an opinionated, approach to integrating Segment into your Laravel application.

Laravel Segment Laravel Segment is an opinionated, approach to integrating Segment into your Laravel application. Installation You can install the pac

Octohook 13 May 16, 2022
Laravel Sanctum support for Laravel Lighthouse

Lighthouse Sanctum Add Laravel Sanctum support to Lighthouse Requirements Installation Usage Login Logout Register Email Verification Forgot Password

Daniël de Wit 43 Dec 21, 2022
Bring Laravel 8's cursor pagination to Laravel 6, 7

Laravel Cursor Paginate for laravel 6,7 Installation You can install the package via composer: composer require vanthao03596/laravel-cursor-paginate U

Pham Thao 9 Nov 10, 2022
A package that uses blade templates to control how markdown is converted to HTML inside Laravel, as well as providing support for markdown files to Laravel views.

Install Install via composer. $ composer require olliecodes/laravel-etched-blade Once installed you'll want to publish the config. $ php artisan vendo

Ollie Codes 19 Jul 5, 2021
A light weight laravel package that facilitates dealing with arabic concepts using a set of classes and methods to make laravel speaks arabic

A light weight laravel package that facilitates dealing with arabic concepts using a set of classes and methods to make laravel speaks arabic! concepts like , Hijri Dates & Arabic strings and so on ..

Adnane Kadri 49 Jun 22, 2022
Jetstrap is a lightweight laravel 8 package that focuses on the VIEW side of Jetstream / Breeze package installed in your Laravel application

A Laravel 8 package to easily switch TailwindCSS resources generated by Laravel Jetstream and Breeze to Bootstrap 4.

null 686 Dec 28, 2022
Laravel Jetstream is a beautifully designed application scaffolding for Laravel.

Laravel Jetstream is a beautifully designed application scaffolding for Laravel. Jetstream provides the perfect starting point for your next Laravel application and includes login, registration, email verification, two-factor authentication, session management, API support via Laravel Sanctum, and optional team management.

The Laravel Framework 3.5k Jan 8, 2023
Laravel Larex lets you translate your whole Laravel application from a single CSV file.

Laravel Larex Translate Laravel Apps from a CSV File Laravel Larex lets you translate your whole Laravel application from a single CSV file. You can i

Luca Patera 68 Dec 12, 2022
A Laravel package that adds a simple image functionality to any Laravel model

Laraimage A Laravel package that adds a simple image functionality to any Laravel model Introduction Laraimage served four use cases when using images

Hussein Feras 52 Jul 17, 2022
A Laravel extension for using a laravel application on a multi domain setting

Laravel Multi Domain An extension for using Laravel in a multi domain setting Description This package allows a single Laravel installation to work wi

null 658 Jan 6, 2023