comment

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package comment holds typed column descriptors and relation descriptors for the Comment model.

Index

Constants

This section is empty.

Variables

View Source
var (
	ID         = base.ID
	DocumentID = base.DocumentID
	Body       = base.Body
)
View Source
var Table = momo.TableRef{Name: "comments"}

Table is the base table reference.

Functions

func ColumnByName

func ColumnByName(name string) (momo.ColumnRef, error)

ColumnByName returns the typed column for an allowlisted external name. Names are matched exactly against database column names; relation fields and sensitive fields are not in the allowlist.

func ColumnNames

func ColumnNames() []string

ColumnNames lists the allowlisted names in declaration order.

Types

type Columns

type Columns struct {
	ID         momo.Column[int64]
	DocumentID momo.Column[int64]
	Body       momo.Column[string]
}

Columns is one alias's set of column descriptors.

func As

func As(alias string) Columns

As returns the column descriptors qualified by alias (the table name when alias is empty).

Jump to

Keyboard shortcuts

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