diff --git a/README.md b/README.md index e676ceb5..3759df47 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ Supported TDS drivers: ## Quick Example ```javascript -const sql = require('mssql') +const sql = require('mssql'); -async () => { +(async () => { try { // make sure that any items are correctly URL encoded in the connection string await sql.connect('mssql://username:password@localhost/database') @@ -26,7 +26,7 @@ async () => { } catch (err) { // ... error checks } -} +})(); ``` If you're on Windows Azure, add `?encrypt=true` to your connection string. See [docs](#configuration) to learn more.