Skip to content

qihangnet/deno2-mysql2-issues-reproduction

Repository files navigation

This is for reproducing the mysql2 issue in deno2

Description

This repo is for reproducing the mysql2 issue in Deno, specifically focusing on database connection and query execution using the mysql2 library.

Directory Structure

Environment Dependencies

Executing deno check

  • [email protected]

    cd mysql2-3-4-0
    deno check main.ts

    Result is ok

  • [email protected]

    cd mysql2-3-4-1
    deno check main.ts

    Result:

    Check file:///Users/yimingzhi/Projects/deno2-mysql2-issues-reproduction/mysql2-3-4-1/main.ts
    error: TS2339 [ERROR]: Property 'query' does not exist on type 'Connection'.
            const [results, fields] = await connection.query(
                                                       ~~~~~
    at file:///Users/yimingzhi/Projects/deno2-mysql2-issues-reproduction/Database.ts:14:56
    
    TS2339 [ERROR]: Property 'execute' does not exist on type 'Connection'.
            const [result, fields] = await connection.execute(sql, values);
                                                      ~~~~~~~
    at file:///Users/yimingzhi/Projects/deno2-mysql2-issues-reproduction/Database.ts:30:55
    
    Found 2 errors.
  • [email protected]

    cd mysql2-3-11-3
    deno check main.ts

    Result:

    Check file:///Users/yimingzhi/Projects/deno2-mysql2-issues-reproduction/mysql2-3-11-3/main.ts
    error: TS2339 [ERROR]: Property 'query' does not exist on type 'Connection'.
            const [results, fields] = await connection.query(
                                                       ~~~~~
    at file:///Users/yimingzhi/Projects/deno2-mysql2-issues-reproduction/Database.ts:14:56
    
    TS2339 [ERROR]: Property 'execute' does not exist on type 'Connection'.
            const [result, fields] = await connection.execute(sql, values);
                                                      ~~~~~~~
    at file:///Users/yimingzhi/Projects/deno2-mysql2-issues-reproduction/Database.ts:30:55
    
    Found 2 errors.
  • [email protected]

    cd mysql2-3-11-4
    deno check main.ts

    Result:

    Check file:///Users/yimingzhi/Projects/deno2-mysql2-issues-reproduction/mysql2-3-11-4/main.ts
    error: TS2339 [ERROR]: Property 'query' does not exist on type 'Connection'.
            const [results, fields] = await connection.query(
                                                       ~~~~~
    at file:///Users/yimingzhi/Projects/deno2-mysql2-issues-reproduction/Database.ts:14:56
    
    TS2339 [ERROR]: Property 'execute' does not exist on type 'Connection'.
            const [result, fields] = await connection.execute(sql, values);
                                                      ~~~~~~~
    at file:///Users/yimingzhi/Projects/deno2-mysql2-issues-reproduction/Database.ts:30:55
    
    Found 2 errors.
  • [email protected]

    cd mysql2-3-12-0
    deno check main.ts

    Result:

    Check file:///Users/yimingzhi/Projects/deno2-mysql2-issues-reproduction/mysql2-3-12-0/main.ts
    error: TS2339 [ERROR]: Property 'query' does not exist on type 'Connection'.
            const [results, fields] = await connection.query(
                                                       ~~~~~
    at file:///Users/yimingzhi/Projects/deno2-mysql2-issues-reproduction/Database.ts:14:56
    
    TS2339 [ERROR]: Property 'execute' does not exist on type 'Connection'.
            const [result, fields] = await connection.execute(sql, values);
                                                      ~~~~~~~
    at file:///Users/yimingzhi/Projects/deno2-mysql2-issues-reproduction/Database.ts:30:55
    
    Found 2 errors.

The result is the same when executing the deno compile command.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published