githubEdit

Primitives

SOM supports most Go primitive types for use in your models.

Strings

type User struct {
    som.Node[som.ULID]

    Name        string
    Description string
}

Integers

Supported signed integers:

type Metrics struct {
    som.Node[som.ULID]

    Count8  int8
    Count16 int16
    Count32 int32
    Count64 int64
    Count   int
}

Supported unsigned integers:

Note: uint, uint64, and uintptr are not currently supported due to SurrealDB limitations with very large integers.

Floating Point

Booleans

Bytes

Runes

Pointers

All primitive types support pointer versions for optional values:

Last updated