Skip to content

Commit

Permalink
Add tds.exs
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Jun 7, 2024
1 parent f43b819 commit ce2890d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tds.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# $ docker run -e "ACCEPT_EULA=Y" -e 'MSSQL_SA_PASSWORD=Secret1@' -p 1433:1433 \
# --platform linux/amd64 \
# mcr.microsoft.com/mssql/server:2022-latest
Mix.install([
{:tds, "~> 2.3"}
])

{:ok, pid} =
Tds.start_link(
username: "sa",
password: "Secret1@",
database: "master",
port: 1433
)

dbg(Tds.query!(pid, "SELECT GETDATE()", []))

0 comments on commit ce2890d

Please sign in to comment.