diff --git a/README.md b/README.md index c7eeaff..f9b824a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Build Status](https://www.travis-ci.org/manyuanrong/deno_mysql.svg?branch=master)](https://www.travis-ci.org/manyuanrong/deno_mysql) ![GitHub](https://img.shields.io/github/license/manyuanrong/deno_mysql.svg) ![GitHub release](https://img.shields.io/github/release/manyuanrong/deno_mysql.svg) -![(Deno)](https://img.shields.io/badge/deno-0.17.0-green.svg) +![(Deno)](https://img.shields.io/badge/deno-0.19.0-green.svg) MySQL database driver for Deno. diff --git a/src/connection.ts b/src/connection.ts index 474c948..15bc5aa 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -40,7 +40,11 @@ export class Connection { private async _connect() { const { hostname, port } = this.client.config; log.info(`connecting ${hostname}:${port}`); - this.conn = await Deno.dial("tcp", `${hostname}:${port}`); + this.conn = await Deno.dial({ + hostname, + port, + transport: "tcp" + }); let receive = await this.nextPacket(); const handshakePacket = parseHandshake(receive.body);