Skip to content

Commit c06011a

Browse files
committed
made SQLQuery dialect specific;
1 parent 67c7e10 commit c06011a

140 files changed

Lines changed: 544 additions & 741 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ storage
1212
nodejs_connection_pool_*
1313
Limitations.md
1414
waddlerChangelog.md
15-
.wrangler
15+
.wrangler
16+
.madgerc
17+
graph.svg

integration-tests/tests/clickhouse/test-filters1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { sql } from 'waddler/clickhouse';
1+
import { sql } from 'waddler/clickhouse-core';
22

33
export const filter1 = ({ id, name, email }: { id?: number; name?: string; email?: string }) => {
44
const filters = [];

integration-tests/tests/clickhouse/test-filters2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as waddlerTools from 'waddler/clickhouse';
1+
import * as waddlerTools from 'waddler/clickhouse-core';
22

33
export const filter2 = ({ id, name, email }: { id?: number; name?: string; email?: string }) => {
44
const filters = [];

integration-tests/tests/clickhouse/waddler.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { type ClickHouseClient, createClient, TupleParam } from '@clickhouse/cli
22
import type Docker from 'dockerode';
33
import { afterAll, beforeAll, beforeEach, expect, test, vi } from 'vitest';
44
import type { ClickHouseSQL } from 'waddler/clickhouse';
5-
import { sql as sqlQuery, waddler } from 'waddler/clickhouse';
5+
import { waddler } from 'waddler/clickhouse';
6+
import { sql as sqlQuery } from 'waddler/clickhouse-core';
67
import { commonTests } from '../common.test.ts';
78
import { createClickHouseDockerDB, vitestExpectSoftDate } from '../utils.ts';
89
import {

integration-tests/tests/cockroach/test-filters1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { sql } from 'waddler/cockroach';
1+
import { sql } from 'waddler/cockroach-core';
22

33
export const filter1 = ({ id, name, email }: { id?: number; name?: string; email?: string }) => {
44
const filters = [];

integration-tests/tests/cockroach/test-filters2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as waddlerTools from 'waddler/cockroach';
1+
import * as waddlerTools from 'waddler/cockroach-core';
22

33
export const filter2 = ({ id, name, email }: { id?: number; name?: string; email?: string }) => {
44
const filters = [];

integration-tests/tests/cockroach/waddler.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import type { Client as ClientT } from 'pg';
33
import pg from 'pg';
44
import { afterAll, beforeAll, beforeEach, expect, test, vi } from 'vitest';
55
import type { CockroachSQL } from 'waddler/cockroach';
6-
import { sql as sqlQuery, waddler } from 'waddler/cockroach';
6+
import { waddler } from 'waddler/cockroach';
7+
import { sql as sqlQuery } from 'waddler/cockroach-core';
78
import { queryStream } from 'waddler/extensions/pg-query-stream';
89
import { commonTests } from '../common.test.ts';
910
import { commonPgTests } from '../pg/pg-core.ts';

integration-tests/tests/common.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { describe, expect, test } from 'vitest';
22
import type { SQL } from 'waddler';
3-
import { PgDialect, SQLDefault, SQLIdentifier, SQLRaw, SQLValues, SQLWrapper } from 'waddler';
3+
import { SQLDefault, SQLIdentifier, SQLRaw, SQLValues, SQLWrapper } from 'waddler';
44
import type { ClickHouseSQL } from 'waddler/clickhouse';
5-
import type { SQL as DuckdbSQL } from 'waddler/duckdb';
5+
import type { DuckdbSQL } from 'waddler/duckdb';
6+
import { PgDialect } from 'waddler/pg-core';
67
import type { SqliteSQL } from './sqlite/sqlite-core';
78

89
declare module 'vitest' {

integration-tests/tests/duckdb-neo/test-filters1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { sql } from 'waddler/duckdb-neo';
1+
import { sql } from 'waddler/duckdb-core';
22

33
export const filter1 = ({ id, name, email }: { id?: number; name?: string; email?: string }) => {
44
const filters = [];

integration-tests/tests/duckdb-neo/test-filters2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as waddlerTools from 'waddler/duckdb-neo';
1+
import * as waddlerTools from 'waddler/duckdb-core';
22

33
export const filter2 = ({ id, name, email }: { id?: number; name?: string; email?: string }) => {
44
const filters = [];

0 commit comments

Comments
 (0)