database

package
v3.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Nging is a toolbox for webmasters Copyright (C) 2018-present Wenhui Shen <swh@admpub.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

View Source
var LeftNavigate = &navigate.Item{
	Display: true,
	Name:    `数据库`,
	Action:  `db`,
	Icon:    `table`,
	Children: &navigate.List{
		{
			Display: true,
			Name:    `数据库账号`,
			Action:  `account`,
		},
		{
			Display: true,
			Name:    `添加账号`,
			Action:  `account_add`,
			Icon:    `plus`,
		},
		{
			Display: false,
			Name:    `修改账号`,
			Action:  `account_edit`,
		},
		{
			Display: false,
			Name:    `删除账号`,
			Action:  `account_delete`,
		},
		{
			Display: true,
			Name:    `连接数据库`,
			Action:  ``,
		},
		{
			Display: true,
			Name:    `表结构同步`,
			Action:  `schema_sync`,
		},
		{
			Display: false,
			Name:    `新增同步方案`,
			Action:  `schema_sync_add`,
		},
		{
			Display: false,
			Name:    `修改同步方案`,
			Action:  `schema_sync_edit`,
		},
		{
			Display: false,
			Name:    `删除同步方案`,
			Action:  `schema_sync_delete`,
		},
		{
			Display: false,
			Name:    `预览表结构差异`,
			Action:  `schema_sync_preview`,
		},
		{
			Display: false,
			Name:    `执行表结构同步`,
			Action:  `schema_sync_run`,
		},
		{
			Display: false,
			Name:    `表结构同步日志列表`,
			Action:  `schema_sync_log/:id`,
		},
		{
			Display: false,
			Name:    `表结构同步日志详情`,
			Action:  `schema_sync_log_view/:id`,
		},
		{
			Display: false,
			Name:    `删除表结构同步日志`,
			Action:  `schema_sync_log_delete`,
		},
	},
}

Functions

func AccountAdd

func AccountAdd(ctx echo.Context) error

func AccountDelete

func AccountDelete(ctx echo.Context) error

func AccountEdit

func AccountEdit(ctx echo.Context) error

func AccountIndex

func AccountIndex(ctx echo.Context) error

func Manager

func Manager(ctx echo.Context) error

func SchemaSync

func SchemaSync(ctx echo.Context) error

SchemaSync 表结构同步

func SchemaSyncAdd

func SchemaSyncAdd(ctx echo.Context) error

SchemaSyncAdd 添加表结构同步方案

func SchemaSyncDelete

func SchemaSyncDelete(ctx echo.Context) error

func SchemaSyncEdit

func SchemaSyncEdit(ctx echo.Context) error

SchemaSyncEdit 编辑表结构同步方案

func SchemaSyncJob

func SchemaSyncJob(id string) cron.Runner

SchemaSyncJob 计划任务调用方式

func SchemaSyncLog

func SchemaSyncLog(ctx echo.Context) error

func SchemaSyncLogDelete

func SchemaSyncLogDelete(ctx echo.Context) error

func SchemaSyncLogView

func SchemaSyncLogView(ctx echo.Context) error

func SchemaSyncPreview

func SchemaSyncPreview(ctx echo.Context) error

func SchemaSyncRun

func SchemaSyncRun(ctx echo.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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