salesforce

package
v0.2.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package salesforce generates Salesforce DX source from a resolved model: a custom object for each entity, and an Apex class or enum for each value, mixin, and enum.

docs/design/salesforce-backend.md has the mapping and the reasons for it. An entity is a row in the org, so it becomes a CustomObject with a CustomField per field it can store. Everything else is a shape Apex code passes around, so it becomes Apex, and Apex names an entity by its SObject type. The output is one file per component, which is how SFDX lays out a project, rather than the one file per model the schema backends write.

Index

Constants

View Source
const Name = "salesforce"

Name is what this backend is called, in a target block and as tdl-gen-salesforce on PATH.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct{}

Backend implements plugin.Backend.

func (Backend) Describe

func (Backend) Describe() plugin.Description

func (Backend) Generate

func (Backend) Generate(_ context.Context, req *plugin.Request) (*plugin.Response, error)

Generate returns the objects and Apex classes the model's own declarations become.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL