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

Example of connecting to mysql via ssl #22588

Open
2 tasks
Avey777 opened this issue Oct 20, 2024 · 0 comments
Open
2 tasks

Example of connecting to mysql via ssl #22588

Avey777 opened this issue Oct 20, 2024 · 0 comments
Labels
Feature Request This issue is made to request a feature.

Comments

@Avey777
Copy link

Avey777 commented Oct 20, 2024

Describe the feature

https://github.com/vlang/v/blob/master/examples/database/mysql.v

Use Case

import db.mysql

fn main() {

  config := mysql.Config{
             host:     'gateway01.ap-southeast-1.prod.aws.tidbcloud.com'
             port:     4000
	     username: 'xfQRtLXKTtPHsUi.root'
	     password: '*******'
	     dbname:   'pool_1688'
	     flag: mysql.ConnectionFlag.client_ssl
	}
	mut conn := mysql.connect(config)!
	res := conn.query('show tables')!
	for row in res.rows() {
		println(row.vals.join(', '))
	}
	conn.close()
}

Proposed Solution

No response

Other Information

22569

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Version used

0.4.8

Environment details (OS name and version, etc.)

all

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@Avey777 Avey777 added the Feature Request This issue is made to request a feature. label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request This issue is made to request a feature.
Projects
None yet
Development

No branches or pull requests

1 participant