SQL Server
table:JDBC
class com.microsoft.sqlserver.jdbc.SQLServerDriver
Port 1433
JDBC URL jdbc:sqlserver://host:port;DatabaseName=db DataSource com.microsoft.sqlserver.jdbc.SQLServerDataSource
com.microsoft.sqlserver.jdbc.SQLServerConnectionPoolDataSource
com.microsoft.sqlserver.jdbc.SQLServerXADataSource
code:Maven
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>12.x.x.jre11</version>
<type>jar</type>
</dependency>
Podにしてみる
$ podman pod create -p 1433:1433 mssql
$ podman create --name sql1 --pod mssql -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=password" mcr.microsoft.com/mssql/server:2022-latest
$ podman kube generate mssql -f mssql.yaml
Podman Quadlet