Skip to content

Commit

Permalink
Merge pull request elixir-ecto#23 from malandrina/lw-ct-update-readme
Browse files Browse the repository at this point in the history
Update README
  • Loading branch information
ewitchin authored Jul 27, 2017
2 parents 48d9f2a + c762105 commit 13e891c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Add Tds as a dependency in your `mix.exs` file.

```elixir
def deps do
[{:tds, "~> 0.2"} ]
[{:tds, "~> 0.5.4"} ]
end
```

Expand All @@ -17,9 +17,9 @@ After you are done, run `mix deps.get` in your shell to fetch and compile Tds. S
```iex
iex> {:ok, pid} = Tds.Connection.start_link([hostname: "localhost", username: "test_user", password: "test_password", database: "test_db", port: 4000])
{:ok, #PID<0.69.0>}
iex> Tds.Connection.query!(pid, "SELECT 'Some Awesome Text' AS MyColumn", [])
iex> Tds.Connection.query(pid, "SELECT 'Some Awesome Text' AS MyColumn", [])
%Tds.Result{columns: ["MyColumn"], rows: [{"Some Awesome Text"}], num_rows: 1}}
iex> Tds.Connection.query!(pid, "INSERT INTO MyTable (MyColumn) VALUES (@my_value)", [%Tds.Parameter{name: "@my_value", value: "My Actual Value"}])
iex> Tds.Connection.query(pid, "INSERT INTO MyTable (MyColumn) VALUES (@my_value)", [%Tds.Parameter{name: "@my_value", value: "My Actual Value"}])
%Tds.Result{columns: nil, rows: nil, num_rows: 1}}
```

Expand Down

0 comments on commit 13e891c

Please sign in to comment.