rethinkdb

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close closes the RethinkDB session

func Health

func Health() error

Health checks if the RethinkDB connection is healthy

func Init

func Init() (err error)

Init initializes the global RethinkDB session. It reads RethinkDB configuration from config.App.RethinkDB. If RethinkDB is not enabled, it returns nil. The function is thread-safe and ensures the session is initialized only once.

func New

func New(cfg config.RethinkDB) (*r.Session, error)

New returns a new RethinkDB session with given configuration. It's the caller's responsibility to close the session, caller should always call Close() when it's no longer needed.

func Session

func Session() (*r.Session, error)

Session returns the RethinkDB session instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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