Skip to content

Commit

Permalink
Formatted files
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoacastro committed Jul 24, 2024
1 parent b9dccbe commit 00ee412
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions drizzle-orm/src/singlestore-core/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import type { ColumnsSelection, SQLWrapper } from '~/sql/sql.ts';
import { WithSubquery } from '~/subquery.ts';
import type { DrizzleTypeError } from '~/utils.ts';
import type { SingleStoreDialect } from './dialect.ts';
import { SingleStoreAttachBase } from './query-builders/attach.ts';
import { SingleStoreDetachBase } from './query-builders/detach.ts';
import {
QueryBuilder,
SingleStoreDeleteBase,
Expand All @@ -27,8 +29,6 @@ import type {
} from './session.ts';
import type { WithSubqueryWithSelection } from './subquery.ts';
import type { SingleStoreTable } from './table.ts';
import { SingleStoreDetachBase } from './query-builders/detach.ts';
import { SingleStoreAttachBase } from './query-builders/attach.ts';

export class SingleStoreDatabase<
TQueryResult extends SingleStoreQueryResultHKT,
Expand Down
4 changes: 2 additions & 2 deletions drizzle-orm/src/singlestore-core/dialect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ import { getTableName, getTableUniqueName, Table } from '~/table.ts';
import { orderSelectedFields, type UpdateSet } from '~/utils.ts';
import { ViewBaseConfig } from '~/view-common.ts';
import { SingleStoreColumn } from './columns/common.ts';
import type { SingleStoreAttachConfig } from './query-builders/attach.ts';
import type { SingleStoreDeleteConfig } from './query-builders/delete.ts';
import type { SingleStoreDetachConfig } from './query-builders/detach.ts';
import type { SingleStoreInsertConfig } from './query-builders/insert.ts';
import type {
SelectedFieldsOrdered,
Expand All @@ -34,8 +36,6 @@ import type { SingleStoreUpdateConfig } from './query-builders/update.ts';
import type { SingleStoreSession } from './session.ts';
import { SingleStoreTable } from './table.ts';
import { SingleStoreViewBase } from './view-base.ts';
import type { SingleStoreDetachConfig } from './query-builders/detach.ts';
import type { SingleStoreAttachConfig } from './query-builders/attach.ts';

export class SingleStoreDialect {
static readonly [entityKind]: string = 'SingleStoreDialect';
Expand Down
8 changes: 4 additions & 4 deletions drizzle-orm/src/singlestore-core/query-builders/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,9 @@ export abstract class SingleStoreSelectQueryBuilderBase<

/**
* Adds `minus` set operator to the query.
*
*
* This is an alias of `except` supported by SingleStore.
*
*
* @example
*
* ```ts
Expand Down Expand Up @@ -1057,9 +1057,9 @@ export const except = createSetOperator('except', false);

/**
* Adds `minus` set operator to the query.
*
*
* This is an alias of `except` supported by SingleStore.
*
*
* @example
*
* ```ts
Expand Down
6 changes: 3 additions & 3 deletions drizzle-orm/src/singlestore/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import type { Connection as CallbackConnection, Pool as CallbackPool } from 'mys
import { entityKind } from '~/entity.ts';
import type { Logger } from '~/logger.ts';
import { DefaultLogger } from '~/logger.ts';
import { SingleStoreDatabase } from '~/singlestore-core/db.ts';
import { SingleStoreDialect } from '~/singlestore-core/dialect.ts';
import type { Mode } from '~/singlestore-core/session.ts';
import {
createTableRelationsHelpers,
extractTablesRelationalConfig,
type RelationalSchemaConfig,
type TablesRelationalConfig,
} from '~/relations.ts';
import { SingleStoreDatabase } from '~/singlestore-core/db.ts';
import { SingleStoreDialect } from '~/singlestore-core/dialect.ts';
import type { Mode } from '~/singlestore-core/session.ts';
import type { DrizzleConfig } from '~/utils.ts';
import { DrizzleError } from '../index.ts';
import type { SingleStore2Client, SingleStore2PreparedQueryHKT, SingleStore2QueryResultHKT } from './session.ts';
Expand Down
8 changes: 5 additions & 3 deletions drizzle-orm/src/singlestore/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ import { Column } from '~/column.ts';
import { entityKind, is } from '~/entity.ts';
import type { Logger } from '~/logger.ts';
import { NoopLogger } from '~/logger.ts';
import type { RelationalSchemaConfig, TablesRelationalConfig } from '~/relations.ts';
import type { SingleStoreDialect } from '~/singlestore-core/dialect.ts';
import type { SelectedFieldsOrdered } from '~/singlestore-core/query-builders/select.types.ts';
import {
type Mode,
type PreparedQueryKind,
SingleStorePreparedQuery,
type SingleStorePreparedQueryConfig,
type SingleStorePreparedQueryHKT,
type SingleStoreQueryResultHKT,
SingleStoreSession,
SingleStoreTransaction,
type SingleStoreTransactionConfig,
type PreparedQueryKind,
} from '~/singlestore-core/session.ts';
import type { RelationalSchemaConfig, TablesRelationalConfig } from '~/relations.ts';
import { fillPlaceholders, sql } from '~/sql/sql.ts';
import type { Query, SQL } from '~/sql/sql.ts';
import { type Assume, mapResultRow } from '~/utils.ts';
Expand Down Expand Up @@ -303,7 +303,9 @@ export class SingleStore2Transaction<
> extends SingleStoreTransaction<SingleStore2QueryResultHKT, SingleStore2PreparedQueryHKT, TFullSchema, TSchema> {
static readonly [entityKind]: string = 'SingleStore2Transaction';

override async transaction<T>(transaction: (tx: SingleStore2Transaction<TFullSchema, TSchema>) => Promise<T>): Promise<T> {
override async transaction<T>(
transaction: (tx: SingleStore2Transaction<TFullSchema, TSchema>) => Promise<T>,
): Promise<T> {
const savepointName = `sp${this.nestedIndex + 1}`;
const tx = new SingleStore2Transaction<TFullSchema, TSchema>(
this.dialect,
Expand Down

0 comments on commit 00ee412

Please sign in to comment.