<commit_before># Adapters

> Note: See [sails-adapter-boilerplate](https://github.com/balderdashy/sails-adapter-boilerplate) for a quick start guide.
-----

Like most MVC frameworks, Sails provides an ORM (Object Relational Mapping) called Waterline for normalizing
interactions with models, no matter what data source you're using. In this guide, we'll be demonstrating how to build adapters for Waterline by building one for Redis.

## Code Setup
To get started, you'll need to clone the main sails repo and create or clone a repo for your new adapter. In our case, the adapter is called "sails-redis", keeping in line with the Sails convention of naming adapters with the format "sails-<db name>". So, you should have a `sails/` and a `sails-redis/` directory.

Next, we need to set up the project with the initial file structure, so do:

```
cd sails-redis<commit_msg>Fixed Quote for Adapters<commit_after># Adapters

> Note: See [sails-adapter-boilerplate](https://github.com/balderdashy/sails-adapter-boilerplate) for a quick start guide.

-----

Like most MVC frameworks, Sails provides an ORM (Object Relational Mapping) called Waterline for normalizing
interactions with models, no matter what data source you're using. In this guide, we'll be demonstrating how to build adapters for Waterline by building one for Redis.

## Code Setup
To get started, you'll need to clone the main sails repo and create or clone a repo for your new adapter. In our case, the adapter is called "sails-redis", keeping in line with the Sails convention of naming adapters with the format "sails-<db name>". So, you should have a `sails/` and a `sails-redis/` directory.

Next, we need to set up the project with the initial file structure, so do:

```
cd sails-redis
{'fraction_non_alphanumeric': 0.07630979498861047, 'fraction_numerical': 0.0, 'mean_word_length': 4.439628482972136, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '4496024', 'n_tokens_mistral': 516, 'n_tokens_neox': 486, 'n_words': 252}