database

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(model config.ModelConfig) error

Run databases

Types

type Base

type Base struct {
	// contains filtered or unexported fields
}

Base database

type Database

type Database interface {
	// contains filtered or unexported methods
}

Database interface

type MongoDB

type MongoDB struct {
	Base
	// contains filtered or unexported fields
}

MongoDB database

type: mongodb host: 127.0.0.1 port: 27017 database: username: password: authdb: exclude_tables: oplog: false args:

type MySQL

type MySQL struct {
	Base
	// contains filtered or unexported fields
}

MySQL database

type: mysql host: 127.0.0.1 port: 3306 socket: database: username: root password: args:

type PostgreSQL

type PostgreSQL struct {
	Base
	// contains filtered or unexported fields
}

PostgreSQL database

ref: https://www.postgresql.org/docs/current/app-pgdump.html

Keys

  • type: postgresql
  • host: localhost
  • port: 5432
  • socket:
  • database:
  • username:
  • password:
  • tables:
  • exclude_tables:
  • args:

type Redis

type Redis struct {
	Base
	// contains filtered or unexported fields
}

Redis database

type: redis mode: sync # or copy for use rdb_path invoke_save: true host: 192.168.1.2 port: 6379 socket: password: rdb_path: /var/db/redis/dump.rdb

type SQLite

type SQLite struct {
	Base
	// contains filtered or unexported fields
}

SQLite database

type: sqlite path:

Jump to

Keyboard shortcuts

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