order

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Copyright (c) 2025 DaggerTech. All rights reserved. Use of this source code is governed by an MIT license that can be found in the LICENSE file. Package order This is direction very basic, and yet versatile ORM package. At present, this is only for postgres

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder is the main order builder mechanism used for dagger

func Asc

func Asc(field string) *Builder

Asc creates a new Builder with the first ordering field being ascending

func Desc

func Desc(field string) *Builder

Desc creates a new Builder with the first ordering field being descending

func (*Builder) Asc

func (b *Builder) Asc(field string) *Builder

Asc add a field being ascending

func (*Builder) Desc

func (b *Builder) Desc(field string) *Builder

Desc add a field being descending

func (*Builder) String

func (b *Builder) String() string

String returns the string version of the ordering list

Jump to

Keyboard shortcuts

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