database

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 11 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: 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: additional_options:

type PostgreSQL

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

PostgreSQL database

type: postgresql host: localhost port: 5432 socket: database: username: password:

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