<commit_before># sqlshim
Provides replacement sqlsrv driver functions for Linux/OS X.


## Synopsis

This shim does NOT (yet?) replace or duplicate ALL sqlsrv driver functionality.
All of the functions are there, but only the most common have been fully(?)
implemented. Exercise caution and DO NOT use in a propduction environment.


## Code Example

1. Instantiate object...
2. sqlsrv_connect();
3. ???
4. Profit!!


## Motivation

It was born out of the need for <http://php.net/manual/en/ref.sqlsrv.php> compatibility in local non-Windows development environments.


## Installation
All of the OS X instructions are theoretical as we have not fully tested them.

### Install FreeTDS

On Debian or Ubuntu:
<apt-get install freetds-bin> or <freetds-common>

On Mac OS X, using homebrew
<brew install freetds>


### Install PDO Driver

On Debian or Ubuntu:
<apt-get install php5-sybase>

On Mac OS X:
<brew install php5-pdo-dblib>

### Instqll ODBC

On Debian or Ubuntu:
<apt-get install unixodbc>

On Mac OS X:
<brew install unixodbc>


### Configure ODBC

1. Locate <libtdsodbc.so> and <libtdsS.so>

1. Copy the following text into your odbcinst.ini (usually </etc/odbcinst.ini> on Debian/Ubuntu and </usr/local/etc/odbcinst.ini> on Mac OS X) file.


    [ODBC Drivers]
    FreeTDS = Installed

    [FreeTDS]>
    Description = FreeTDS driver
    Driver = /path/to/libtdsodbc.so
    Setup = /path/to/libtdsS.so
    FileUsage = 1
    UsageCount = 1


2. Then, set your ODBCINST environment variable to the location of your odbcinst.ini file.


## API Reference

Depending on the size of the project, if it is small and simple enough the reference docs can be added to the README. For medium size to larger projects it is important to at least provide a link to where the API reference docs live.

## Tests

Describe and show how to run the tests with code examples.

## Contributors

Let people know how they can dive into the project, include important links to things like issue trackers, irc, twitter accounts if applicable.

## License

MIT<commit_msg>github markdown is weird<commit_after># sqlshim
Provides replacement sqlsrv driver functions for Linux/OS X.


## Synopsis

This shim does NOT (yet?) replace or duplicate ALL sqlsrv driver functionality.
All of the functions are there, but only the most common have been fully(?)
implemented. Exercise caution and DO NOT use in a propduction environment.


## Code Example

1. Instantiate object...
2. sqlsrv_connect();
3. ???
4. Profit!!


## Motivation

It was born out of the need for <http://php.net/manual/en/ref.sqlsrv.php>
compatibility in local non-Windows development environments.


## Installation
Most of the OS X instructions are theoretical as we have not fully tested them.

### Install FreeTDS

On Debian or Ubuntu:
```apt-get install freetds-bin``` or ```freetds-common```

On Mac OS X, using homebrew
```brew install freetds```


### Install PDO Driver

On Debian or Ubuntu:
```apt-get install php5-sybase```

On Mac OS X:
```brew install php5-pdo-dblib```

### Instqll ODBC

On Debian or Ubuntu:
```apt-get install unixodbc```

On Mac OS X:
```brew install unixodbc```


### Configure ODBC

1. Locate ```libtdsodbc.so``` and ```libtdsS.so```

1. Copy the following text into your odbcinst.ini (usually ```/etc/odbcinst.ini``` on Debian/Ubuntu and ```/usr/local/etc/odbcinst.ini``` on Mac OS X) file.

```ini
[ODBC Drivers]
FreeTDS = Installed

[FreeTDS]
Description = FreeTDS driver
Driver = /path/to/libtdsodbc.so
Setup = /path/to/libtdsS.so
FileUsage = 1
UsageCount = 1
```

2. Then, set your ODBCINST environment variable to the location of your odbcinst.ini file.


## API Reference

Depending on the size of the project, if it is small and simple enough the reference docs can be added to the README. For medium size to larger projects it is important to at least provide a link to where the API reference docs live.

## Tests

Describe and show how to run the tests with code examples.

## Contributors

Let people know how they can dive into the project, include important links to things like issue trackers, irc, twitter accounts if applicable.

## License

MIT
{'fraction_non_alphanumeric': 0.08755426917510854, 'fraction_numerical': 0.005306319343945972, 'mean_word_length': 3.9369047619047617, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 17, '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': '585946', 'n_tokens_mistral': 1363, 'n_tokens_neox': 1266, 'n_words': 571}