db/

directory
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: MIT

README

Database Examples

Overview

This directory contains examples demonstrating how to use the database components of the ServiceLib library. Each example is a complete, runnable application that showcases specific features and usage patterns.

Examples

Running the Examples

Each example can be run from its directory using:

go run main.go
  • DB Package - The database package documentation.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Directories

Path Synopsis
Example of connecting to different database types
Example of connecting to different database types
Example of checking database health
Example of checking database health
Example of executing queries with different database types
Example of executing queries with different database types
Example of implementing the repository pattern with the db package
Example of implementing the repository pattern with the db package
Example of executing queries with retries
Example of executing queries with retries
Example of using transactions with different database types
Example of using transactions with different database types

Jump to

Keyboard shortcuts

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