Updated on 2024-05-07 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 driverName and dataSourceName, see Connecting to a Database.