enso/test/Microsoft_Tests
James Dunkerley 6ea716f1b3
Widget for Database.connect (#11216)
- Use auto-scoping for Redshift, SQLServer and Snowflake.
![image](https://github.com/user-attachments/assets/2f5ff24a-44f4-4e87-909a-e064b8653511)
- Fix for widgets on Header functions.
![image](https://github.com/user-attachments/assets/4384efcf-a4da-48b1-b571-1167ca8d0134)
- Move `Snowflake_Details` to `Standard.Snowflake.Connection` namespace to make widgets work.
- Add widgets to `Snowflake_Details`.
![image](https://github.com/user-attachments/assets/b51d0126-a768-4f4a-9d87-c42c8e91e26b)
- Typo fix for SQLServer SPI.
- Change SQLServer port to be an Integer and added default.
- Reordered parameters on SQLServer **(potentially breaking change)**.
- Added widgets to SQLServer.
![image](https://github.com/user-attachments/assets/1c744da4-7913-4a87-9e64-fc10442a06eb)
- Added widget for JDBC options (as well as conversion from Vector to options).
![image](https://github.com/user-attachments/assets/4958b1e4-4cbc-43e3-8381-64e5ce7ea8ff)
- Added header alias to `use_first_row_as_names`.
- Added various aliases to `read` and `write`.
2024-10-01 08:43:03 +00:00
..
src Widget for Database.connect (#11216) 2024-10-01 08:43:03 +00:00
package.yaml Add Initial SQL Server support (#10624) 2024-07-30 11:13:08 +01:00
README.md Make sqlserver temp tables work (#10781) 2024-08-09 13:06:16 +03:00

This is a set of tests for the Microsoft integration for Enso.

Testing Microsoft SQL Server

To run the tests, you need to prepare credentials for a Microsoft SQL Server instance that can be used to run them on.

Please set the following environment variables:

  • 'ENSO_SQLSERVER_HOST' - the name of the server hosting SQLServer,
  • 'ENSO_SQLSERVER_PORT' - the port SQLServer is on,
  • 'ENSO_SQLSERVER_USER' - the user name to use to connect,
  • 'ENSO_SQLSERVER_PASSWORD' - the pasword for that user,
  • 'ENSO_SQLSERVER_DATABASE' - the database on the SQLServer to use.

Docker

The easiest way to test locally is to use a docker image

docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=<YourStrong@Passw0rd>" -p 1433:1433 --name sql1 --hostname sql1 -d mcr.microsoft.com/mssql/server:2022-latest

Set ENSO_SQLSERVER_DATABASE to tempdb and the defaults will work for everything else. (The user is sa with the above password)

$env:ENSO_SQLSERVER_DATABASE='tempdb'