func (db *DB) PingContext(ctx context.Context) error
PingContext 使用提供的上下文验证到数据库的连接是否仍然处于活动状态,并在必要时建立连接。