Skip to content

refactor: derive Default on ConnectionParams and DatabaseSelection#174

Merged
debba merged 1 commit into
TabularisDB:mainfrom
saurabh500:derive-default-connection-params
May 10, 2026
Merged

refactor: derive Default on ConnectionParams and DatabaseSelection#174
debba merged 1 commit into
TabularisDB:mainfrom
saurabh500:derive-default-connection-params

Conversation

@saurabh500
Copy link
Copy Markdown
Contributor

Precursor for #144. Add Default so tests can use ..Default::default() as driver-specific fields land.

  • ConnectionParams: derive Default
  • DatabaseSelection: manual Default impl → Single(String::new())

490/490 lib tests pass. Zero changes needed outside models.rs.

Add Default implementations so tests and driver-specific code can use
`..Default::default()` instead of spelling out every Option field.

- ConnectionParams: derive Default (all Option fields default to None,
  driver defaults to empty String, database to Single(""))
- DatabaseSelection: manual Default impl → Single(String::new())

This is a precursor for TabularisDB#144 (SQL Server TLS/auth fields) — new
driver-specific fields won't require updating every existing test.

490/490 lib tests pass.
@saurabh500
Copy link
Copy Markdown
Contributor Author

@debba the Default trait is ready

@debba debba merged commit 4496395 into TabularisDB:main May 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants