Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose getters for connect options fields #2891

Merged

Conversation

saiintbrisson
Copy link
Contributor

@saiintbrisson saiintbrisson commented Nov 21, 2023

Exposes some of the main fields for PgConnectOptions and
MySqlConnectOptions. Exposed fields include host, port, socket,
ssl mode, application name, and charset via getters.

It didn't seem like a good idea to expose passwords and SSL certificates.
Other less relevant fields also don't look necessary.

Partially solves #2764 by creating getters for most fields.

Exposes some of the main fields for PgConnectOptions
and MySqlConnectOptions. Exposed fields include: host,
port, socket, ssl mode, application name, and charset.
@saiintbrisson saiintbrisson changed the title feat: expose connect options fields feat: expose getters for connect options fields Nov 21, 2023
@abonander abonander merged commit a7862ae into launchbadge:main Jan 21, 2024
64 checks passed
kukabi pushed a commit to helikon-labs/sqlx that referenced this pull request Feb 22, 2024
Exposes some of the main fields for PgConnectOptions
and MySqlConnectOptions. Exposed fields include: host,
port, socket, ssl mode, application name, and charset.
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