schema

package
v0.0.0-...-932f842 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Copyright 2023 Christopher Briscoe. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDatabase

func CreateDatabase(name string) (*pgx.Conn, error)

CreateDatabase creates a new database and renames old one if it already exists

func CreateRole

func CreateRole(ctx context.Context, conn *pgx.Conn, name string) error

CreateRole creates a role with only login permissions

Types

This section is empty.

Jump to

Keyboard shortcuts

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