postgres

package module
v0.0.0-...-77fa510 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package postgres provides a PostgreSQL storage backend for xmpp-go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(dsn string) (*xmppsql.Store, error)

New creates a new PostgreSQL-backed storage.

Types

type PostgresDialect

type PostgresDialect struct{}

PostgresDialect implements the SQL dialect for PostgreSQL.

func (PostgresDialect) AutoIncrement

func (d PostgresDialect) AutoIncrement() string

func (PostgresDialect) BlobType

func (d PostgresDialect) BlobType() string

func (PostgresDialect) Migrations

func (d PostgresDialect) Migrations() []string

func (PostgresDialect) Name

func (d PostgresDialect) Name() string

func (PostgresDialect) Now

func (d PostgresDialect) Now() string

func (PostgresDialect) Placeholder

func (d PostgresDialect) Placeholder(n int) string

func (PostgresDialect) TextType

func (d PostgresDialect) TextType() string

func (PostgresDialect) TimestampType

func (d PostgresDialect) TimestampType() string

func (PostgresDialect) UpsertSuffix

func (d PostgresDialect) UpsertSuffix(conflictColumns []string, updateColumns []string) string

Jump to

Keyboard shortcuts

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