<commit_before>Bindings for postgres (libpq 9.1.1)
=============
These aren't ready yet :)


Testing
-------

To test the bindings you'll need to get into postgres as a superuser and create a user 

Here's what my session looked like

<pre>
~$ psql
psql (9.1.1)
Type "help" for help.

postgres=# <b>CREATE USER rustuser WITH PASSWORD '<PASSWORD>';</b>
<i>CREATE ROLE</i>

postgres=# <b>CREATE DATABASE rust_test_db;</b>
<i>CREATE DATABASE</i>

</pre>


Preliminary Results
-------------------

If postgres is setup correctly and rustc can find your libpq then you might be 
able to get the following output

<pre>

$ rustc --bin pq.rc --test && ./pq

running 1 tests
rust: "CONNECTION_OK"
rust: 90101
rust: 90101
rust: 3
rust: "rust_test_db"
rust: "rustuser"
rust: "rustpass"
rust: "localhost"
rust: "5432"
rust: ""
rust: ""
rust: 1
rust: "status:    PGRES_COMMAND_OK"
rust: "error msg: "
NOTICE:  CREATE TABLE will create implicit sequence "movie_did_seq" for serial column "movie.did"
NOTICE:  CREATE TABLE / UNIQUE will create implicit index "movie_did_key" for table "movie"
rust: 1
rust: "status:    PGRES_COMMAND_OK"
rust: "error msg: "
rust: 2
rust: "status:    PGRES_TUPLES_OK"
rust: "error msg: "
rust: 3
rust: 4
rust: 0
rust: "title"
rust: 48686
rust: 2
rust: 0
rust: -1
rust: 259
rust: "CmdStatus: SELECT 3"
rust: 0
rust: "3"
rust: "star wars"
rust: 9
rust: 0
rust: 0
rust: "No error found"
test ResultTest ... ok
</pre><commit_msg>fixed readme<commit_after>Bindings for postgres (libpq 9.1.1)
=============
These aren't ready yet :)


Testing
-------

To test the bindings you'll need to get into postgres as a superuser and create a user 

Here's what my session looked like

<pre>
~$ psql
psql (9.1.1)
Type "help" for help.

postgres=# <b>CREATE USER rustuser WITH PASSWORD '<PASSWORD>';</b>
<i>CREATE ROLE</i>

postgres=# <b>CREATE DATABASE rust_test_db;</b>
<i>CREATE DATABASE</i>

</pre>


Preliminary Results
-------------------

If postgres is setup correctly and rustc can find your libpq then you might be 
able to get the following output

<pre>

$ rustc --bin pq.rc --test && ./pq

running 2 tests
rust: ~"CONNECTION_OK"
rust: ~"CONNECTION_OK"
rust: 90101
rust: 90101
rust: 90101
rust: 90101
rust: 3
rust: 3
NOTICE:  table "movie1" does not exist, skipping
NOTICE:  table "movie" does not exist, skipping
NOTICE:  CREATE TABLE will create implicit sequence "movie1_did_seq" for serial column "movie1.did"
NOTICE:  CREATE TABLE will create implicit sequence "movie_did_seq" for serial column "movie.did"
NOTICE:  CREATE TABLE / UNIQUE will create implicit index "movie_did_key" for table "movie"
NOTICE:  CREATE TABLE / UNIQUE will create implicit index "movie1_did_key" for table "movie1"
rust: ~"PGRES_COMMAND_OK"
rust: ~"-------------------------------------------------------"
rust: ~[Int32(1), VarChar(~"a new hope"), Int32(1977), VarChar(~"lucas")]
rust: ~"CONNECTION_OK"
test glue::ResultTest ... ok
test ResultTest ... ok

result: ok. 2 passed; 0 failed; 0 ignored

</pre>
{'fraction_non_alphanumeric': 0.15456362425049966, 'fraction_numerical': 0.030313124583610927, 'mean_word_length': 3.759112519809826, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '4239087', 'n_tokens_mistral': 1153, 'n_tokens_neox': 1038, 'n_words': 394}