dbprovider

package
v0.0.0-...-3befcbb Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Provides access to Postgres db connection pool and Ent singleton so we don't have to initialize it everywhere.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Conn

func Conn() *sql.Driver

func Ent

func Ent() *ent.Client

func RefreshMaterializedViews

func RefreshMaterializedViews(ctx context.Context)

Drop and recreate our Materialized views with SQL files.

func RunMigration

func RunMigration(ctx context.Context)

Run the Ent auto migration tool Docs: https://entgo.io/docs/migrate

Types

This section is empty.

Jump to

Keyboard shortcuts

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