<commit_before># MySQL Connector

This is an Arrow connector to MySQL.

## Installation

```bash
$ appc install connector/appc.mysql --save
```

A configuration file is generated for you. By default we use a host of `localhost`, a user of `root` and an
empty password to connect. However, you must set a database in your configuration.

## Usage

Reference the connector in your model.

```javascript
var Account = Arrow.Model.extend('Account',{
	fields: {
		Name: { type: String, required: true, validator: /[a-zA-Z]{3,}/ }
	},
	connector: 'appc.mysql'
});
```

If you want to map a specific model to a specific table, use metadata.  For example, to map the `account` model to 
the table named `accounts`, set it such as:

```javascript
var Account = Arrow.Model.extend('account',{
	fields: {
		Name: { type: String, required: false, validator: /[a-zA-Z]{3,}/ }
	},
	connector: 'appc.mysql',
	metadata: {
		'appc.mysql': {<commit_msg>[ARRCONN-219] Documentation issue - fixed<commit_after># MySQL Connector

This is an Arrow connector to MySQL.

## Installation

```bash
$ appc install connector/appc.mysql
```

A configuration file is generated for you. By default we use a host of `localhost`, a user of `root` and an
empty password to connect. However, you must set a database in your configuration.

## Usage

Reference the connector in your model.

```javascript
var Account = Arrow.Model.extend('Account',{
	fields: {
		Name: { type: String, required: true, validator: /[a-zA-Z]{3,}/ }
	},
	connector: 'appc.mysql'
});
```

If you want to map a specific model to a specific table, use metadata.  For example, to map the `account` model to 
the table named `accounts`, set it such as:

```javascript
var Account = Arrow.Model.extend('account',{
	fields: {
		Name: { type: String, required: false, validator: /[a-zA-Z]{3,}/ }
	},
	connector: 'appc.mysql',
	metadata: {
		'appc.mysql': {
{'fraction_non_alphanumeric': 0.13326282390269698, 'fraction_numerical': 0.0037017451084082496, 'mean_word_length': 4.113513513513514, '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': '2667340', 'n_tokens_mistral': 637, 'n_tokens_neox': 592, 'n_words': 236}