CLI
Basic Command
go run github.com/go-surreal/som@latest -i <input_dir>Flags
Flag
Description
Default
Example
# Generate from ./model to ./gen/som (default output)
go run github.com/go-surreal/som@latest -i ./model
# Generate to custom output directory
go run github.com/go-surreal/som@latest -i ./model -o ./db/generatedInitialization Mode
Installing the Binary
Output Structure
Generated Packages
som (root)
som (root)repo
repoquery
queryfilter
filterby
bywith
withconv
convrelate
relateVersion Pinning
Regenerating Code
Troubleshooting
Models not detected
Import errors
Conflicting types
Last updated