| 1 | package DBIx::Class::ElasticSync; | ||
| 2 | 1 | ▶ | use 5.008001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | our $VERSION = "0.05"; | |
| 7 | |||
| 8 | |||
| 9 | |||
| 10 | 1 | 1; | |
| 11 | __END__ | ||
| 12 | |||
| 13 | =encoding utf-8 | ||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | DBIx::Class::ElasticSync - Helps keep your data in Sync with Elastic | ||
| 18 | |||
| 19 | |||
| 20 | =head2 Description | ||
| 21 | |||
| 22 | DBIx::Class::Elasticsearch is a Module to link your DBIx::Class Schema to Elastic faster. | ||
| 23 | |||
| 24 | It helps you, to denormalize your relational database schema to fit into the document orientated elastic store | ||
| 25 | |||
| 26 | =head2 Warning | ||
| 27 | |||
| 28 | This repository is under development. API changes are possible at this point of time. We will create more documentation if we tested this in the wild. | ||
| 29 | |||
| 30 | =head2 TODO | ||
| 31 | |||
| 32 | =over | ||
| 33 | |||
| 34 | =item Add an Application Example | ||
| 35 | |||
| 36 | =item Complete the Docs | ||
| 37 | |||
| 38 | =back | ||
| 39 | |||
| 40 | =head2 Setting up your DBIx::Model | ||
| 41 | |||
| 42 | =head3 Adding role to your Schema Class | ||
| 43 | |||
| 44 | with 'DBIx::Class::Elasticsearch::Role::ElasticSchema'; | ||
| 45 | |||
| 46 | In advanced you need to handle over your Schema the connection informations for Elastic | ||
| 47 | |||
| 48 | $schema->connect_elastic( { host => "localhost", port => 9200, index => "MyApp" } ); | ||
| 49 | |||
| 50 | =head3 Adding role to your Result Class | ||
| 51 | |||
| 52 | with 'DBIx::Class::Elasticsearch::Role::ElasticResult'; | ||
| 53 | |||
| 54 | =head3 Building your own ElasticResultSet Classes | ||
| 55 | |||
| 56 | extends 'Elasticsearch::ResultSet'; | ||
| 57 | |||
| 58 | =head3 Running your Application | ||
| 59 | |||
| 60 | DBIx::Class::Elasticsearch::Role will hook into your insert, update and delete DBIx::Class::Row methods. If you change Data in your Database, it will be synced with the Elastic Storage. | ||
| 61 | |||
| 62 | =head2 Credits | ||
| 63 | |||
| 64 | This module is based on Chris 'SchepFc3' Shepherd work, which you can find here: | ||
| 65 | |||
| 66 | https://github.com/ShepFc3/ElasticDBIx | ||
| 67 | |||
| 68 | =head2 Authors | ||
| 69 | |||
| 70 | =over | ||
| 71 | |||
| 72 | =item Jens Gassmann <jg@gassmann.it> | ||
| 73 | =item Patrick Kilter <pk@gassmann.it> | ||
| 74 | |||
| 75 | =back | ||
| 76 | |||
| 77 | =cut | ||
| 78 | |||