Updated on 2024-06-03 GMT+08:00

sql.Open

The following table describes sql.Open.

Method

Description

Return Value

Open(driverName, dataSourceName string)

Opens a database based on a specified database driver and the dedicated data source of the driver.

*DB and error

For details about the driverName and dataSourceName parameters, see Connecting to a Database.