Skip to content

MySQL driver does not have default import #25

@woowenjun99

Description

@woowenjun99

When I use the MySQL driver, sqlc generates

import mysql, { RowDataPacket } from "mysql2/promise";

However, there is no default import for mysql. Changing to the following works:

import * as mysql from "mysql2/promise";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions