Download the PHP package appsero/laravel-datastore without Composer
On this page you can find all versions of the php package appsero/laravel-datastore. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download appsero/laravel-datastore
More information about appsero/laravel-datastore
Files in appsero/laravel-datastore
Package laravel-datastore
Short Description A package for using google datastore as a database driver.
License MIT
Homepage https://github.com/appsero/laravel-datastore
Informations about the package laravel-datastore
Datastore Driver for Laravel
A package for using google datastore as a database driver.
By using this package, you can use query builder
and eloquent
to access data from datastore.
Installation
You can install the package via composer:
If you are using Laravel Package Auto-Discovery, you don't need you to manually add the ServiceProvider.
Without auto-discovery:
If you don't use auto-discovery, add the below ServiceProvider to the $providers
array in config/app.php
file.
Roadmap
- Data read using query builder (available).
- Data read using eloquent model (available).
- Data insert (available).
- Data update (Using query builder, model coming soon).
- Data delete (available).
- Cursor Paginate (soon).
- Relations (soon).
Usage
You need to add datastore
connection in config/database.php
file.
Access using Eloquent Model
You need to extend Appsero\LaravelDatastore\Eloquent\Model
class instead of laravel's default eloquent model class.
Example-
Access using Query Builder
Example-
It will return a collection.
Tested Builder Functions
- connection
- table
- from
- select (for projection query)
- kind (same as table)
- where (Available: = , > , < , >= , <= )
- limit
- take
- skip
- orderBy
- get
- simplePaginate
- paginate (works same as simplePaginate)
- first
- delete
- insert
- upsert
- find / lookup
Contribution Guide
This driver is still not stable. You can contribute by reporting bugs, fixing bugs, reviewing pull requests and more ways. Go to issues section, and you can start working on a issue immediately. If you want to add or fix something, open a pull request by following Laravel contribution guide.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-datastore with dependencies
ext-json Version *
illuminate/support Version ^6|^7|^8|^9.0|^10.0|^11.0
illuminate/pagination Version ^6|^7|^8|^9.0|^10.0|^11.0
illuminate/database Version ^6|^7|^8|^9.0|^10.0|^11.0
illuminate/http Version ^6|^7|^8|^9.0|^10.0|^11.0
google/cloud-datastore Version 1.12