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: connections.sql.go
    path of file: ./repos/neosync/backend/gen/go/db
    
    the code of the file until where you have to start completion: // Code generated by sqlc. DO NOT EDIT.
// versions:
//   sqlc v1.23.0
// source: connections.sql

package db_queries

import (
	"context"

	"github.com/jackc/pgx/v5/pgtype"
	pg_models "github.com/nucleuscloud/neosync/backend/sql/postgresql/models"
)

const areConnectionsInAccount = `-- name: AreConnectionsInAccount :one
SELECT count(c.id) from neosync_api.connections c
INNER JOIN neosync_api.accounts a ON a.id = c.account_id
WHERE a.id = $1 and c.id = ANY($2:
    
func (q *Queries) GetConnectionsByIds(ctx context.Context, db DBTX, dollar_1 []pgtype.UUID) ([]NeosyncApiConnection, error) {
	rows, err := db.Query(ctx, getConnectionsByIds, dollar_1)
	if err != nil {
		return nil, err
	}
	defer rows.Close()
	var items []NeosyncApiConnection
	for rows.Next() {
		var i NeosyncApiConnection
		if err := rows.Scan(
			&i.ID,
			&i.CreatedAt,
			&i.UpdatedAt,
			&i.Name,
			&i.AccountID,
			&i.ConnectionConfig,
			&i.CreatedByID,
			&i.UpdatedByID,
		); err != nil {
			return nil, err
		}
		items = append(items, i)
	}
	if err := rows.Err(); err != nil {
		return nil, err
	}
	return items, nil
}