Hi,
The standard sql package (https://pkg.go.dev/database/sql) comes with a
connection pool. I think it is the DB struct handling the pool.
The drivers which implement the details for a specific database product
usually come with plenty of documentation and examples. See
https://github.com/golang/go/wiki/SQLDrivers for a list of them.

Shishira Pradhan <shishirapradhan2...@gmail.com> schrieb am Sa. 8. Jan.
2022 um 15:29:

> Hello All,
>
> What is the appropriate and industry standard mechanism to send database
> connection across golang file to use in logic layer to get data from DB? It
> should be one time connection established and many time use the connection
> pool across all files.
>
> Thanks,
> Shishira
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/bd5646b9-0615-4551-bafd-c0a2cd47ba22n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/bd5646b9-0615-4551-bafd-c0a2cd47ba22n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CALWqRZrstDffeWn1tm5Uh8QDTPZpuEDeW1StdxaDy8WW7Gd%2BZA%40mail.gmail.com.

Reply via email to