postgresql

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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