Skip to content

Commit bc39c9c

Browse files
committed
refactor: rename DockerComposeContextBuilder::new to with_sqlite
Renamed the private constructor method for better symmetry and clarity: - Old: DockerComposeContextBuilder::new(ports) - New: DockerComposeContextBuilder::with_sqlite(ports) This provides better symmetry with the with_mysql() method and makes it more explicit that the builder starts with SQLite configuration by default. The builder() public method now calls with_sqlite() instead of new().
1 parent b97d446 commit bc39c9c

File tree

1 file changed

+2
-2
lines changed
  • src/infrastructure/templating/docker_compose/template/wrappers/docker_compose

1 file changed

+2
-2
lines changed

src/infrastructure/templating/docker_compose/template/wrappers/docker_compose/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl DockerComposeContext {
5656
/// ```
5757
#[must_use]
5858
pub fn builder(ports: TrackerPorts) -> DockerComposeContextBuilder {
59-
DockerComposeContextBuilder::new(ports)
59+
DockerComposeContextBuilder::with_sqlite(ports)
6060
}
6161

6262
/// Get the database configuration
@@ -149,7 +149,7 @@ pub struct DockerComposeContextBuilder {
149149

150150
impl DockerComposeContextBuilder {
151151
/// Creates a new builder with default `SQLite` configuration
152-
fn new(ports: TrackerPorts) -> Self {
152+
fn with_sqlite(ports: TrackerPorts) -> Self {
153153
Self {
154154
ports,
155155
database: DatabaseConfig {

0 commit comments

Comments
 (0)