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 MSSQLServer module #645

Merged
merged 20 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
34 changes: 34 additions & 0 deletions docs/modules/mssqlserver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# MS SQL Server Module

[Microsoft SQL Server](https://www.microsoft.com/en-us/sql-server) is a relational database management system developed by Microsoft. It provides a platform for efficiently storing, managing, and retrieving structured data. MSSQL offers features for data storage, retrieval, manipulation, and analysis, making it a key component in various applications ranging from small-scale projects to enterprise-level systems.

## Install

```bash
npm install @testcontainers/mssqlserver --save-dev
```

## Examples

!!! warning "EULA Acceptance"
Due to licencing restrictions you are required to accept an EULA for this container image. To indicate that you accept the MS SQL Server image EULA, call the `acceptLicense()` method.

Please see the [`microsoft-mssql-server` image documentation](https://hub.docker.com/_/microsoft-mssql-server#environment-variables) for a link to the EULA document.

<!--codeinclude-->

[Connect and execute query:](../../packages/modules/mssqlserver/src/mssqlserver-container.test.ts) inside_block:connect

<!--/codeinclude-->

<!--codeinclude-->

[Connect and execute query using URI:](../../packages/modules/mssqlserver/src/mssqlserver-container.test.ts) inside_block:uriConnect

<!--/codeinclude-->

<!--codeinclude-->

[Set password:](../../packages/modules/mssqlserver/src/mssqlserver-container.test.ts) inside_block:setPassword

<!--/codeinclude-->
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ nav:
- Kafka: modules/kafka.md
- MongoDB: modules/mongodb.md
- MySQL: modules/mysql.md
- MSSQLServer: modules/mssqlserver.md
- Nats: modules/nats.md
- Neo4J: modules/neo4j.md
- PostgreSQL: modules/postgresql.md
Expand Down
Loading