config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package config provides configuration types for the jone migration tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Client     string
	Connection Connection
	Migrations Migrations
}

Config holds the main configuration for jone.

type Connection

type Connection struct {
	Host     string
	Port     string
	User     string
	Password string
	Database string
	SSLMode  string // disable, require, verify-full
}

Connection holds database connection parameters.

func (*Connection) DSN

func (c *Connection) DSN() string

DSN returns the PostgreSQL connection string.

type Migrations

type Migrations struct {
	TableName string
}

Migrations holds migration-specific configuration.

Jump to

Keyboard shortcuts

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