Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (*ProviderDocumentGenerator) Run ¶
func (x *ProviderDocumentGenerator) Run() error
Click to show internal directories.
Click to hide internal directories.