Updated on 2023-10-23 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 the Database.