<commit_before># Osmos Drivers

Drivers allow Osmos to interface with a specific data store. Because Osmos is store-agnostic, a driver only needs to support a limited number of operations that fit the mould of the typical [CRUD system](http://en.wikipedia.org/wiki/Create,_read,_update_and_delete).

Currently, Osmos 1.x supports the following data stores:

- [RethinkDB](./rethinkdb.md)
- [MongoDB](./mongodb.md)
- [Memory](./memory.md), a memory-based driver useful for testing purposes only.
- [MySQL](./mysql.md)

## CRUD operations

Note that the signatures of these methods have changed as of version 1.1.0

A driver is a class that implements these methods:

- `create(model, cb)` 

  Creates a new document and pass it to the callback. The document should be a simple hash—`create`'s only job is to initialize any arbitrary values that are required by the specific data store.
  
- `get(model, key, cb)` <commit_msg>- Link ES docs<commit_after># Osmos Drivers

Drivers allow Osmos to interface with a specific data store. Because Osmos is store-agnostic, a driver only needs to support a limited number of operations that fit the mould of the typical [CRUD system](http://en.wikipedia.org/wiki/Create,_read,_update_and_delete).

Currently, Osmos 1.x supports the following data stores:

- [ElasticSearch](./elasticsearch.md)
- [Memory](./memory.md), a memory-based driver useful for testing purposes only.
- [MongoDB](./mongodb.md)
- [MySQL](./mysql.md)
- [RethinkDB](./rethinkdb.md)

## CRUD operations

Note that the signatures of these methods have changed as of version 1.1.0

A driver is a class that implements these methods:

- `create(model, cb)` 

  Creates a new document and pass it to the callback. The document should be a simple hash—`create`'s only job is to initialize any arbitrary values that are required by the specific data store.
  
- `get(model, key, cb)` 
{'fraction_non_alphanumeric': 0.09273979862215156, 'fraction_numerical': 0.0042395336512983575, 'mean_word_length': 4.259052924791086, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1266379', 'n_tokens_mistral': 566, 'n_tokens_neox': 548, 'n_words': 242}