Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodriguespn committed Aug 13, 2024
1 parent 843078a commit 55dfb8e
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion drizzle-orm/type-tests/singlestore/generated-columns.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type Equal, Expect } from 'type-tests/utils';
import { type InferInsertModel, type InferSelectModel, sql } from '~/index';
import { singlestoreTable, serial, text, varchar } from '~/singlestore-core';
import { drizzle } from '~/mysql2';
import { serial, singlestoreTable, text, varchar } from '~/singlestore-core';
import { db } from './db';

const users = singlestoreTable(
Expand Down
2 changes: 1 addition & 1 deletion drizzle-orm/type-tests/singlestore/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { param, sql } from '~/sql/sql.ts';

import type { Equal } from 'type-tests/utils.ts';
import { Expect } from 'type-tests/utils.ts';
import { type SingleStoreSelect, type SingleStoreSelectQueryBuilder, QueryBuilder } from '~/singlestore-core/index.ts';
import { QueryBuilder, type SingleStoreSelect, type SingleStoreSelectQueryBuilder } from '~/singlestore-core/index.ts';
import { db } from './db.ts';
import { cities, classes, newYorkers, users } from './tables.ts';

Expand Down
2 changes: 1 addition & 1 deletion drizzle-orm/type-tests/singlestore/subquery.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Expect } from 'type-tests/utils.ts';
import { and, eq } from '~/expressions.ts';
import { alias, int, singlestoreTable, serial, text } from '~/singlestore-core/index.ts';
import { alias, int, serial, singlestoreTable, text } from '~/singlestore-core/index.ts';
import { sql } from '~/sql/sql.ts';
import type { DrizzleTypeError, Equal } from '~/utils.ts';
import { db } from './db.ts';
Expand Down
2 changes: 1 addition & 1 deletion drizzle-orm/type-tests/singlestore/tables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const users = singlestoreTable(
.lock('default')
.algorythm('copy')
.using(`btree`),
pk: primaryKey({columns: [users.age1, users.class]}),
pk: primaryKey({ columns: [users.age1, users.class] }),
}),
);

Expand Down
2 changes: 1 addition & 1 deletion drizzle-orm/type-tests/singlestore/with.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Equal } from 'type-tests/utils.ts';
import { Expect } from 'type-tests/utils.ts';
import { gt, inArray } from '~/expressions.ts';
import { int, singlestoreTable, serial, text } from '~/singlestore-core/index.ts';
import { int, serial, singlestoreTable, text } from '~/singlestore-core/index.ts';
import { sql } from '~/sql/sql.ts';
import { db } from './db.ts';

Expand Down
2 changes: 1 addition & 1 deletion drizzle-typebox/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import {
type Table,
} from 'drizzle-orm';
import { MySqlChar, MySqlVarBinary, MySqlVarChar } from 'drizzle-orm/mysql-core';
import { SingleStoreChar, SingleStoreVarBinary, SingleStoreVarChar} from 'drizzle-orm/singlestore-core';
import { type PgArray, PgChar, PgUUID, PgVarchar } from 'drizzle-orm/pg-core';
import { SingleStoreChar, SingleStoreVarBinary, SingleStoreVarChar } from 'drizzle-orm/singlestore-core';
import { SQLiteText } from 'drizzle-orm/sqlite-core';

type TUnionLiterals<T extends string[]> = T extends readonly [
Expand Down
1 change: 0 additions & 1 deletion drizzle-typebox/tests/singlestore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import { expect, test } from 'vitest';
import { createInsertSchema, createSelectSchema, jsonSchema } from '../src/index.ts';
import { expectSchemaShape } from './utils.ts';


const customInt = customType<{ data: number }>({
dataType() {
return 'int';
Expand Down
6 changes: 3 additions & 3 deletions drizzle-valibot/tests/singlestore.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { BSON } from 'bson';
import {
bigint,
binary,
Expand All @@ -15,10 +16,10 @@ import {
longtext,
mediumint,
mediumtext,
singlestoreEnum,
singlestoreTable,
real,
serial,
singlestoreEnum,
singlestoreTable,
smallint,
text,
time,
Expand Down Expand Up @@ -47,7 +48,6 @@ import {
import { expect, test } from 'vitest';
import { createInsertSchema, createSelectSchema, jsonSchema } from '../src/index.ts';
import { expectSchemaShape } from './utils.ts';
import {BSON} from 'bson';

const customInt = customType<{ data: number }>({
dataType() {
Expand Down
3 changes: 1 addition & 2 deletions drizzle-zod/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ function mapColumnToSchema(column: Column): z.ZodTypeAny {
type = z.any();
} else if (column.dataType === 'buffer') {
type = z.any();
}
else if (column.dataType === 'json') {
} else if (column.dataType === 'json') {
type = jsonSchema;
} else if (column.dataType === 'array') {
type = z.array(mapColumnToSchema((column as PgArray<any, any>).baseColumn));
Expand Down
6 changes: 3 additions & 3 deletions drizzle-zod/tests/singlestore.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { BSON } from 'bson';
import {
bigint,
binary,
Expand All @@ -15,10 +16,10 @@ import {
longtext,
mediumint,
mediumtext,
singlestoreEnum,
singlestoreTable,
real,
serial,
singlestoreEnum,
singlestoreTable,
smallint,
text,
time,
Expand All @@ -33,7 +34,6 @@ import { expect, test } from 'vitest';
import { z } from 'zod';
import { createInsertSchema, createSelectSchema, jsonSchema } from '~/index';
import { expectSchemaShape } from './utils.ts';
import {BSON} from 'bson';

const customInt = customType<{ data: number }>({
dataType() {
Expand Down

0 comments on commit 55dfb8e

Please sign in to comment.