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: db_security_group.go
    path of file: ./repos/trivy/pkg/iac/adapters/terraform/nifcloud/rdb
    
    the code of the file until where you have to start completion: package rdb

import (
	"github.com/aquasecurity/trivy/pkg/iac/providers/nifcloud/rdb"
	"github.com/aquasecurity/trivy/pkg/iac/terraform"
	iacTypes "github.com/aquasecurity/trivy/pkg/iac/types"
)

func adaptDB
    
func adaptDBSecurityGroups(modules terraform.Modules) []rdb.DBSecurityGroup {
	var dbSecurityGroups []rdb.DBSecurityGroup

	for _, resource := range modules.GetResourcesByType("nifcloud_db_security_group") {
		dbSecurityGroups = append(dbSecurityGroups, adaptDBSecurityGroup(resource))
	}
	return dbSecurityGroups
}