db

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package db provides data access objects compatible with the rest of the jelly framework packages.

It includes basics as well as a sample implementation of Store that is compatible with jelly auth middleware.

TODO: call this package db or somefin and move auth-specific to middleware. For sure by GHI-016 if not before.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	V *mail.Address
}

Email is a mail.Addresss that stores itself as a string.

func (*Email) Scan

func (em *Email) Scan(value interface{}) error

func (Email) String

func (em Email) String() string

func (Email) Value

func (em Email) Value() (driver.Value, error)

type Timestamp

type Timestamp time.Time

Timestamp is a time.Time variation that stores itself in the DB as the number of seconds since the Unix epoch.

func NowTimestamp

func NowTimestamp() Timestamp

func (Timestamp) Format

func (ts Timestamp) Format(layout string) string

func (*Timestamp) Scan

func (ts *Timestamp) Scan(value interface{}) error

func (Timestamp) Time

func (ts Timestamp) Time() time.Time

func (Timestamp) Value

func (ts Timestamp) Value() (driver.Value, error)

Directories

Path Synopsis
Package owdb provides OrbweaverDB stores.
Package owdb provides OrbweaverDB stores.

Jump to

Keyboard shortcuts

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