Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add MS SQL Server dialect. #595

Merged
merged 80 commits into from
Sep 9, 2023
Merged
Show file tree
Hide file tree
Changes from 78 commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
57620cf
add mssql dev dependency.
igalklebanov Jul 17, 2023
beee7c9
Merge branch 'master' into mssql-dialect
igalklebanov Jul 18, 2023
c84ea10
add mssql to docker-compose.yml.
igalklebanov Jul 18, 2023
d4d7ab9
config? @ pg driver.
igalklebanov Jul 18, 2023
e51b57d
initial dialect implementation.
igalklebanov Jul 19, 2023
dbc6243
Merge branch 'master' into mssql-dialect
igalklebanov Jul 19, 2023
a6dfbbc
fix browser tests by getting tedious stuff in config.
igalklebanov Jul 19, 2023
1a97d6f
Merge branch 'master' into mssql-dialect
igalklebanov Jul 21, 2023
f9adb7f
introduce mssql to test-setup.
igalklebanov Jul 22, 2023
945fe29
get dialect to a working state.
igalklebanov Jul 22, 2023
fd01e77
introduce mssql to insert test suite.
igalklebanov Jul 22, 2023
b5fbb96
introduce mssql to select test suite.
igalklebanov Jul 22, 2023
3b08a91
add mssql to test scripts.
igalklebanov Jul 22, 2023
e4540bf
make tests pass type-checks.
igalklebanov Jul 22, 2023
c006c62
Merge branch 'master' into mssql-dialect
igalklebanov Jul 22, 2023
57cd036
fix new tests after update branch.
igalklebanov Jul 22, 2023
1b725bc
introduce mssql to update test suite.
igalklebanov Jul 22, 2023
dabc2d1
fix mysql test expectation.
igalklebanov Jul 22, 2023
facd918
introduce mssql to delete test suite.
igalklebanov Jul 22, 2023
042b397
introduce mssql to with test suite.
igalklebanov Jul 22, 2023
86e220a
introduce mssql to with schema test suite.
igalklebanov Jul 23, 2023
f5a3815
introduce mssql to where test suite.
igalklebanov Jul 23, 2023
cc91823
Merge branch 'master' into mssql-dialect
igalklebanov Jul 23, 2023
e41fcef
test mssql vs. selectNoFrom.
igalklebanov Jul 23, 2023
e72124c
introduce mssql to set operation test suite.
igalklebanov Jul 23, 2023
ccfa1f4
fix error rejections.
igalklebanov Jul 24, 2023
1508457
introduce mssql to schema module test suite.
igalklebanov Jul 24, 2023
0099d60
Merge branch 'master' into mssql-dialect
igalklebanov Jul 27, 2023
c5ab5df
remove mssql, add tedious and tarn.
igalklebanov Jul 29, 2023
bf5f93e
initial pool implementation using tarn.
igalklebanov Jul 29, 2023
32bda8e
fix failing where tests.
igalklebanov Jul 29, 2023
ae17118
fix compilation errors at select tests.
igalklebanov Jul 29, 2023
a8f4a3c
introduce mssql to schema module test suite, pt. 2.
igalklebanov Jul 29, 2023
09f47af
compile mssql alter table alter column properly.
igalklebanov Jul 31, 2023
ce55989
introduce mssql to schema module test suite, pt. 3.
igalklebanov Jul 31, 2023
cfe611d
fix failing where test.
igalklebanov Jul 31, 2023
d5531b6
introduce mssql to sanitize identifiers test suite.
igalklebanov Aug 2, 2023
f7e7b7d
introduce mssql to raw sql test suite.
igalklebanov Aug 2, 2023
5e6e2bb
introduce mssql to raw query test suite.
igalklebanov Aug 2, 2023
f438909
introduce mssql to order by test suite.
igalklebanov Aug 2, 2023
9d87ac4
Merge branch 'master' into mssql-dialect
igalklebanov Aug 3, 2023
3268674
introduce mssql to join test suite.
igalklebanov Aug 3, 2023
e067376
introduce mssql to having test suite.
igalklebanov Aug 3, 2023
60559e2
introduce mssql into group by test suite.
igalklebanov Aug 3, 2023
cc4cf34
empty and/or works everywhere.
igalklebanov Aug 3, 2023
ebcca8b
introduce mssql to expression test suite.
igalklebanov Aug 3, 2023
1328b0b
introduce mssql to execute test suite.
igalklebanov Aug 3, 2023
aae2c40
introduce mssql to deduplicate joins test suite.
igalklebanov Aug 3, 2023
b393ba7
introduce mssql to coalesce test suite.
igalklebanov Aug 3, 2023
23b0535
introduce mssql to clear test suite.
igalklebanov Aug 3, 2023
f9771c3
introduce mssql case test suite.
igalklebanov Aug 3, 2023
9f82a6d
introduce mssql to camel case test suite.
igalklebanov Aug 3, 2023
fb8741c
introduce mssql to aggregate function test suite.
igalklebanov Aug 4, 2023
a69f3ad
lift only.
igalklebanov Aug 4, 2023
40b228d
connection validate shouldn't trigger kysely stuff.
igalklebanov Aug 4, 2023
62ef70e
introduce mssql to transaction test suite, pt. 1.
igalklebanov Aug 4, 2023
a85be59
Merge branch 'master' into mssql-dialect
igalklebanov Aug 4, 2023
fa3494b
fix introspect tests.
igalklebanov Aug 4, 2023
772f6a2
remove mssql types.
igalklebanov Aug 4, 2023
66d7655
add @types/tedious dev dep.
igalklebanov Aug 4, 2023
00df597
introduce mssql to transaction test suite, pt. 2.
igalklebanov Aug 4, 2023
989de4a
introduce mssql to introspect test suite, pt. 1.
igalklebanov Aug 5, 2023
c34f900
Merge branch 'master' into mssql-dialect
igalklebanov Aug 5, 2023
aa8fdb9
introduce mssql to introspect test suite, pt. 2.
igalklebanov Aug 5, 2023
0b52cb0
fix default to column introspection @ mssql.
igalklebanov Aug 5, 2023
efb0297
autoincrementing columns are technically columns with default values.
igalklebanov Aug 6, 2023
9489d69
dont use ifNotExists in mssql migrations.
igalklebanov Aug 6, 2023
f221a98
introduce mssql to migration test suite.
igalklebanov Aug 6, 2023
6938047
Merge branch 'master' into mssql-dialect
igalklebanov Aug 8, 2023
a07213b
implement streaming.
igalklebanov Aug 9, 2023
ece054d
Merge branch 'master' into mssql-dialect
igalklebanov Aug 10, 2023
ff422f2
fix schema tests.
igalklebanov Aug 11, 2023
8bb0c0e
rename DIALECTS_WITH_MSSQL back to DIALECTS.
igalklebanov Aug 11, 2023
a00831b
misc adjustments and js docs.
igalklebanov Aug 12, 2023
5a1aa1d
Merge branch 'master' into mssql-dialect
igalklebanov Aug 12, 2023
36c86e7
fix wording of `supportsCreateIfNotExists`.
igalklebanov Aug 12, 2023
d8fdd97
Merge branch 'master' into mssql-dialect
igalklebanov Aug 29, 2023
bb9f7d7
Merge branch 'master' into mssql-dialect
igalklebanov Sep 1, 2023
6afab44
Merge branch 'master' into mssql-dialect
igalklebanov Sep 9, 2023
e883b22
add mssql to key value set variant test case.
igalklebanov Sep 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
version: '3'
services:
# credit to Knex.js team for the following mssql setup here:
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
ports:
- '21433:1433'
environment:
ACCEPT_EULA: Y
MSSQL_PID: Express
SA_PASSWORD: KyselyTest0
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S mssql -U sa -P 'KyselyTest0' -Q 'select 1'
waitmssql:
image: mcr.microsoft.com/mssql/server:2017-latest
links:
- mssql
depends_on:
- mssql
environment:
MSSQL_PID: Express
entrypoint:
- bash
- -c
# https://docs.microsoft.com/en-us/sql/relational-databases/logs/control-transaction-durability?view=sql-server-ver15#bkmk_DbControl
- 'until /opt/mssql-tools/bin/sqlcmd -S mssql -U sa -P KyselyTest0 -d master -Q "CREATE DATABASE kysely_test; ALTER DATABASE kysely_test SET ALLOW_SNAPSHOT_ISOLATION ON; ALTER DATABASE kysely_test SET DELAYED_DURABILITY = FORCED"; do sleep 5; done'
mysql:
image: 'mysql/mysql-server'
environment:
Expand All @@ -17,4 +41,4 @@ services:
POSTGRES_USER: kysely
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- '5434:5432'
- '5434:5432'
Loading