You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: dao_workflow_hook.go
    path of file: ./repos/cds/engine/api/workflow_v2
    
    the code of the file until where you have to start completion: package workflow_v2

import (
	"context"

	"github.com/go-gorp/gorp"
	"github.com/lib/pq"
	"github.com/rockbears/log"

	"github.com/ovh/cds/engine/api/database/gorpmapping"
	"github.com/ovh/cds/engine/gorpmapper"
	"github.com/ovh/cds/sdk"
	"github.com/ovh/cds/sdk/telemetry"
)

func g
    
func LoadAllHooksUnsafe(ctx context.Context, db gorp.SqlExecutor) ([]sdk.V2WorkflowHook, error) {
	query := gorpmapping.NewQuery(`SELECT * from v2_workflow_hook`)
	var dbHooks []dbWorkflowHook
	if err := gorpmapping.GetAll(ctx, db, query, &dbHooks); err != nil {
		return nil, err
	}
	runs := make([]sdk.V2WorkflowHook, 0, len(dbHooks))
	for _, dbHook := range dbHooks {
		runs = append(runs, dbHook.V2WorkflowHook)
	}

	return runs, nil
}