doc_gen

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MPL-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratorDBDocsWithPostgresqlDSNEnv added in v0.0.20

func GeneratorDBDocsWithPostgresqlDSNEnv(provider *provider.Provider) (string, error)

Types

type DBDocsGenerator added in v0.0.20

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

DBDocsGenerator Generate dbdocs(https://dbdocs.io/) support DBML (https://www.dbml.org/home/)

func NewDBDocsGenerator added in v0.0.20

func NewDBDocsGenerator(provider *provider.Provider) *DBDocsGenerator

func (*DBDocsGenerator) GenColumn added in v0.0.20

func (x *DBDocsGenerator) GenColumn(table *schema.Table, column *schema.Column)

func (*DBDocsGenerator) GenFK added in v0.0.20

func (x *DBDocsGenerator) GenFK()

func (*DBDocsGenerator) GenProjectBlock added in v0.0.20

func (x *DBDocsGenerator) GenProjectBlock()

GenProjectBlock

example:

Project Ecommerce {
 database_type: 'PostgreSQL'
 Note: '''
   # Ecommerce Database
   **markdown content here**
 '''
}

func (*DBDocsGenerator) GenTable added in v0.0.20

func (x *DBDocsGenerator) GenTable(table *schema.Table)

func (*DBDocsGenerator) GenTables added in v0.0.20

func (x *DBDocsGenerator) GenTables()

func (*DBDocsGenerator) Run added in v0.0.20

func (x *DBDocsGenerator) Run() string

type ProviderDocumentGenerator

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

ProviderDocumentGenerator auto generate provider and it's table documentation

func New

func New(provider *provider.Provider, outputDirectory string) *ProviderDocumentGenerator

func (*ProviderDocumentGenerator) Run

Jump to

Keyboard shortcuts

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