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

close connection #25

Closed
Lichtsinnig opened this issue Jul 5, 2019 · 5 comments
Closed

close connection #25

Lichtsinnig opened this issue Jul 5, 2019 · 5 comments

Comments

@Lichtsinnig
Copy link

Hi.
I have not found a method for closing a connection.
How to close the connection to the database after the request?

@nightroman
Copy link
Owner

There is no explicit Mdbc support for this. When you call Connect-Mdbc you get your server, database, and collection (variables) see help. Then you can call whatever the driver provides using these instances.

@nightroman
Copy link
Owner

Did you find an answer? I can see $Server.Disconnect() but I am not sure it is "working". $Server still shows State : Connected.

@nightroman
Copy link
Owner

From the driver docs:

Normally there is no need to call this method so you should be sure to have a good reason to call it.

I think you do not have to care about closing anything. Why are you asking, are there any problems?

@nightroman
Copy link
Owner

Closing?

@Lichtsinnig
Copy link
Author

Thanks for the answer!
Yes, close.

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

No branches or pull requests

2 participants