Skip to content

Commit

Permalink
Fix text
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleconroy committed Dec 1, 2023
1 parent 04d32c6 commit 614b711
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions examples/bun-mysql2/src/db/query_sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export interface GetAuthorArgs {

export interface GetAuthorRow {
id: number;
name: number;
bio: number | null;
name: string;
bio: string | null;
}

export async function getAuthor(client: Client, args: GetAuthorArgs): Promise<GetAuthorRow | null> {
Expand All @@ -39,8 +39,8 @@ ORDER BY name`;

export interface ListAuthorsRow {
id: number;
name: number;
bio: number | null;
name: string;
bio: string | null;
}

export async function listAuthors(client: Client): Promise<ListAuthorsRow[]> {
Expand All @@ -66,8 +66,8 @@ INSERT INTO authors (
)`;

export interface CreateAuthorArgs {
name: number;
bio: number | null;
name: string;
bio: string | null;
}

export async function createAuthor(client: Client, args: CreateAuthorArgs): Promise<void> {
Expand Down
12 changes: 6 additions & 6 deletions examples/node-mysql2/src/db/query_sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export interface GetAuthorArgs {

export interface GetAuthorRow {
id: number;
name: number;
bio: number | null;
name: string;
bio: string | null;
}

export async function getAuthor(client: Client, args: GetAuthorArgs): Promise<GetAuthorRow | null> {
Expand All @@ -39,8 +39,8 @@ ORDER BY name`;

export interface ListAuthorsRow {
id: number;
name: number;
bio: number | null;
name: string;
bio: string | null;
}

export async function listAuthors(client: Client): Promise<ListAuthorsRow[]> {
Expand All @@ -66,8 +66,8 @@ INSERT INTO authors (
)`;

export interface CreateAuthorArgs {
name: number;
bio: number | null;
name: string;
bio: string | null;
}

export async function createAuthor(client: Client, args: CreateAuthorArgs): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/mysql2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function columnType(column?: Column): TypeNode {
break;
}
case "text": {
typ = factory.createKeywordTypeNode(SyntaxKind.NumberKeyword);
// string
break;
}
case "tinyint": {
Expand Down

0 comments on commit 614b711

Please sign in to comment.