Package io.quarkus.datasource.runtime
Interface DevServicesBuildTimeConfig
-
public interface DevServicesBuildTimeConfig
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<String>command()The container start command to use, for container based DevServices providers.Map<String,String>containerEnv()Environment variables that are passed to the container.Map<String,String>containerProperties()Generic properties that are passed for additional container configuration.Optional<String>dbName()The name of the database to use if this Dev Service supports overriding it.Optional<Boolean>enabled()If DevServices has been explicitly enabled or disabled.Optional<String>imageName()The container image name to use, for container based DevServices providers.Optional<String>initScriptPath()Path to a SQL script that will be loaded from the classpath and applied to the Dev Service database If the provider is not container based (e.g.Optional<String>password()The password to use if this Dev Service supports overriding it.OptionalIntport()Optional fixed port the dev service will listen to.Map<String,String>properties()Generic properties that are added to the database connection URL.Optional<String>username()The username to use if this Dev Service supports overriding it.Map<String,String>volumes()The volumes to be mapped to the container.
-
-
-
Method Detail
-
enabled
Optional<Boolean> enabled()
If DevServices has been explicitly enabled or disabled. DevServices is generally enabled by default, unless there is an existing configuration present. When DevServices is enabled Quarkus will attempt to automatically configure and start a database when running in Dev or Test mode.
-
imageName
Optional<String> imageName()
The container image name to use, for container based DevServices providers. If the provider is not container based (e.g. a H2 Database) then this has no effect.
-
containerEnv
Map<String,String> containerEnv()
Environment variables that are passed to the container.
-
containerProperties
Map<String,String> containerProperties()
Generic properties that are passed for additional container configuration.Properties defined here are database specific and are interpreted specifically in each database dev service implementation.
-
properties
Map<String,String> properties()
Generic properties that are added to the database connection URL.
-
port
OptionalInt port()
Optional fixed port the dev service will listen to.If not defined, the port will be chosen randomly.
-
command
Optional<String> command()
The container start command to use, for container based DevServices providers. If the provider is not container based (e.g. a H2 Database) then this has no effect.
-
dbName
Optional<String> dbName()
The name of the database to use if this Dev Service supports overriding it.
-
username
Optional<String> username()
The username to use if this Dev Service supports overriding it.
-
password
Optional<String> password()
The password to use if this Dev Service supports overriding it.
-
initScriptPath
Optional<String> initScriptPath()
Path to a SQL script that will be loaded from the classpath and applied to the Dev Service database If the provider is not container based (e.g. an H2 or Derby Database) then this has no effect.
-
volumes
Map<String,String> volumes()
The volumes to be mapped to the container. The map key corresponds to the host location and the map value is the container location. If the host location starts with "classpath:", then the mapping will load the resource from the classpath with read-only permission. When using a file system location, the volume will be created with read-write permission, so the data in your file system might be wiped out or altered. If the provider is not container based (e.g. an H2 or Derby Database) then this has no effect.
-
-