tools

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BulkInsertNumber     = 2000
	BatchSize            = 10000
	PageSize             = 10
	BulkInsertPageNumber = 100
	FindOneLoop          = 1
)

TODO: Add these ones to the .env file.

Variables

View Source
var (
	//go:embed sql/init.sql
	RecreateDatabaseSQL string

	//go:embed sql/insert.sql
	InsertQuery string
	//go:embed sql/insert_returning_id.sql
	InsertReturningIDQuery string
	//go:embed sql/insert_bulk.sql
	InsertBulkQuery string
	//go:embed sql/update.sql
	UpdateQuery string
	//go:embed sql/delete.sql
	DeleteQuery string
	//go:embed sql/select_by_id.sql
	SelectByIDQuery string
	//go:embed sql/select_paginating.sql
	SelectPaginatingQuery string
)
View Source
var PostgresDSN string

Functions

func RecreateDatabase

func RecreateDatabase()

Types

This section is empty.

Jump to

Keyboard shortcuts

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