postgresql

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package postgresql provides the JSON-serializable model, mapper, and option decoder for the PostgreSQL layer. It registers itself with the jsonapi registry via init().

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeOptions

func DecodeOptions(raw json.RawMessage) ([]greet.GreetOption, error)

DecodeOptions decodes raw PostgreSQL options into engine GreetOptions.

func FromResult

func FromResult(data greet.LayerData) any

FromResult maps a *postgresql.PostgreSQLResult to *Data. It returns the input unchanged when data is not a *postgresql.PostgreSQLResult.

func Register

func Register(c *jsonapi.Codec)

Register registers the PostgreSQL data mapper and option decoder on the given Codec.

Types

type Data

type Data struct {
	SSLSupported bool `json:"sslSupported"`
}

Data is the JSON-serializable payload for a PostgreSQL layer.

type Options

type Options struct {
	SSLMode string `json:"sslMode"`
}

Options holds JSON-serializable PostgreSQL layer options.

Jump to

Keyboard shortcuts

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