entify

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 6 Imported by: 6

README

entify

Documentation

Overview

一个UML meta 对应一个 Repository,维护自己的数据库配置

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	DbConfig db.DbConfig
	Model    *model.Model
	MetaId   shared.ID
}

func New

func New(config db.DbConfig) *Repository

func (*Repository) Init

func (r *Repository) Init(umlMeta meta.UMLMeta, metaId shared.ID)

func (*Repository) IsEntityExists

func (r *Repository) IsEntityExists(name string) bool

func (*Repository) OpenSession

func (r *Repository) OpenSession() (*orm.Session, error)

func (*Repository) PublishMeta

func (r *Repository) PublishMeta(published, next *meta.UMLMeta, metaId shared.ID)

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

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