agentConfigRecordFromSQLC (executionstore/agent_config_rows.go)

omnara · internal/storage/executionstore/agent_config_rows.go · go · Apache-2.0
database, tag:embed-classified

Converts SQLC-generated rows into internal agent config and profile records.

// Source: https://github.com/omnara-ai/omnara | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package executionstore

import (
	"github.com/google/uuid"
	"github.com/omnara-ai/omnara/internal/storage/internal/dbsqlc"
	"github.com/omnara-ai/omnara/internal/storage/internal/storeutil"
)

func agentConfigRecordFromSQLC(row dbsqlc.AgentConfig) AgentConfigRecord {
	return AgentConfigRecord{
		ID:                      row.ID,
		OrgID:                   row.OrgID,
		ProjectID:               row.ProjectID,
		Source:                  storeutil.TextOrEmpty(row.Source),
		SourceFormat:            storeutil.TextOrEmpty(row.SourceFormat),
		SourceHash:              storeutil.TextOrEmpty(row.S

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key