Versions in this module Expand all Collapse all v0 v0.8.1 Aug 31, 2025 v0.8.0 Aug 26, 2025 v0.7.0 Aug 15, 2025 Changes in this version + const AutoID + const FoldersPathSeparator + const MaxTagLength + const MaxTitleLength + const RootSharedFolderName + const RootUserFolderPrefix + const TypeBinary + const TypeBit + const TypeBoolean + const TypeDate + const TypeDateTime + const TypeDecimal + const TypeFloat + const TypeGUID + const TypeImage + const TypeInteger + const TypeJSON + const TypeMoney + const TypeNumber + const TypeString + const TypeText + const TypeTime + const TypeUUID + var ErrProjectDoesNotExist = errors.New("project does not exist") + var KnownTypes = []string + func IsValidateStoreType(v string) bool + func ProjectDoesNotExist(err error) bool + func ValidateFolderPath(folderPath string) error + func ValidateName(name string) error + func ValidateTitle(title string) error + type Action struct + Data interface{} + Next Actions + Type string + func (v Action) Validate() error + type Actions []Action + func (v Actions) Validate() error + type ApiEndpoint struct + FavoritesCount int + Method string + QueryType string + UrlHost string + UrlPath string + UrlSchema string + VotesDown int + VotesScore int + VotesUp int + func (v ApiEndpoint) Validate() error + type ApiService struct + func (v ApiService) Validate() error + type Board struct + Rows BoardRows + func (v Board) Validate() error + type BoardCard struct + Cols int + ID string + Title string + Widget *BoardWidget + func (v BoardCard) Validate() error + type BoardCards []BoardCard + func (v BoardCards) Validate() error + type BoardRow struct + Cards BoardCards + MaxHeight string + MinHeight string + func (v BoardRow) Validate() error + type BoardRows []BoardRow + func (v BoardRows) Validate() error + type BoardWidget struct + Data interface{} + Name string + func (v BoardWidget) Validate() (err error) + type Boards []*Board + func (v Boards) Validate() error + type CatalogObject struct + DefaultAlias string + Name string + Schema string + Type string + func (v CatalogObject) Validate() error + type CatalogObjectWithRefs struct + ForeignKeys ForeignKeys + PrimaryKey *UniqueKey + ReferencedBy TableReferencedBys + func (v CatalogObjectWithRefs) Validate() error + type CatalogObjects []CatalogObject + func (v CatalogObjects) Validate() error + type CatalogObjectsWithRefs []CatalogObjectWithRefs + func (v CatalogObjectsWithRefs) Validate() error + type ChangeType int + const ChangeTypeAdded + const ChangeTypeAltered + const ChangeTypeDeleted + const ChangeTypeUnchanged + type Changeset struct + Datasets []DatasetDef + Status string + type ChangesetDef struct + Datasets []ChangesetRefToDataset + type ChangesetRefToDataset struct + ID string + Required bool + type CharacterSet struct + Catalog string + Name string + Schema string + func (v CharacterSet) Validate() error + type Check struct + Data json.RawMessage + ID string + Title string + Type string + func (v *Check) Validate() error + type Checks []*Check + func (v Checks) Validate() error + type Collation struct + Catalog string + Name string + Schema string + func (v Collation) Validate() error + type ColumnDiff struct + type ColumnModel struct + ByEnv StateByEnv + Checks Checks + func (v *ColumnModel) Validate() error + type ColumnModels []*ColumnModel + func (v ColumnModels) Validate() error + type ColumnsDiff []ColumnDiff + type Constraint struct + Name string + Type string + func (v Constraint) Validate() error + type Credentials struct + Password string + Username string + func (v Credentials) Validate() error + type DatabaseDifferences struct + ID string + SchemasDiff SchemasDiff + type DatasetDef struct + Recordsets []RecordsetDefinition + type DatasetRefToRecordset struct + MaxRecordsCount int + MinRecordsCount int + type DatatugProject struct + Actions Actions + Boards Boards + Created *ProjectCreated + DbDifferences DatabaseDifferences + DbModels DbModels + DbServers ProjDbServers + Entities Entities + Environments Environments + Queries *QueryFolder + Repository *ProjectRepository + func (v DatatugProject) Validate() error + type DatatugStoreBrief struct + Projects map[string]ProjectBrief + Title string + Type string + func (v DatatugStoreBrief) Validate() error + type DatatugUser struct + Datatug *UserDatatugInfo + func (v DatatugUser) Validate() error + type DbCatalog struct + Schemas DbSchemas + func (v DbCatalog) Validate() error + type DbCatalogBase struct + DbModel string + Driver string + Path string + func (v DbCatalogBase) Validate() error + type DbCatalogCounts struct + Schemas int + Tables int + Views int + type DbCatalogSummary struct + Environments []string + NumberOf *DbCatalogCounts + type DbCatalogs []*DbCatalog + func (v DbCatalogs) GetDbByID(id string) *DbCatalog + func (v DbCatalogs) GetTable(catalog, schema, name string) *Table + func (v DbCatalogs) Validate() error + type DbColumnProps struct + CharMaxLength *int + CharOctetLength *int + CharacterSet *CharacterSet + Collation *Collation + DateTimePrecision *int + DbType string + Default *string + IsNullable bool + Name string + OrdinalPosition int + PrimaryKeyPosition int + func (v DbColumnProps) Validate() error + type DbModel struct + Environments DbModelEnvironments + Schemas SchemaModels + func (v DbModel) Validate() error + type DbModelDbCatalog struct + ID string + func (v DbModelDbCatalog) Validate() error + type DbModelDbCatalogs []*DbModelDbCatalog + func (v DbModelDbCatalogs) GetByID(id string) (dbModelDb *DbModelDbCatalog) + func (v DbModelDbCatalogs) Validate() error + type DbModelEnv struct + DbCatalogs DbModelDbCatalogs + ID string + func (v DbModelEnv) Validate() error + type DbModelEnvironments []*DbModelEnv + func (v DbModelEnvironments) GetByID(id string) *DbModelEnv + func (v DbModelEnvironments) Validate() error + type DbModels []*DbModel + func (v DbModels) GetDbModelByID(id string) (dbModel *DbModel) + func (v DbModels) IDs() (ids []string) + func (v DbModels) Validate() error + type DbSchema struct + Tables []*Table + Views []*Table + func (v DbSchema) Validate() error + type DbSchemas []*DbSchema + func (v DbSchemas) GetByID(id string) *DbSchema + func (v DbSchemas) Validate() error + type DiffDbRef struct + Catalog string + Environment string + Host string + Port int + type Entities []*Entity + func (v Entities) GetEntityByID(id string) (entity *Entity) + func (v Entities) IDs() (ids []string) + func (v Entities) Validate() error + type Entity struct + Fields EntityFields + Tables TableKeys + func (v Entity) Validate() error + type EntityField struct + ID string + IsKeyField bool + NamePatterns StringPatterns + Title string + Type string + func (v EntityField) Validate() error + type EntityFieldRef struct + Entity string + Field string + func (v EntityFieldRef) Validate() error + type EntityFields []EntityField + func (v EntityFields) Validate() error + type EnvDb struct + DbModel string + Server ServerReference + func (v EnvDb) Validate() error + type EnvDbDifference struct + ActualValue string + Property string + type EnvDbServer struct + Catalogs []string + func (v EnvDbServer) Validate() error + type EnvDbServers []*EnvDbServer + func (v EnvDbServers) GetByServerRef(serverRef ServerReference) *EnvDbServer + func (v EnvDbServers) Validate() error + type EnvState struct + Differences []EnvDbDifference + Status string + func (v EnvState) Validate() error + type Environment struct + DbServers EnvDbServers + func (v Environment) Validate() error + type EnvironmentFile struct + ID string + func (v EnvironmentFile) Validate() error + type EnvironmentSummary struct + Servers EnvDbServers + func (v EnvironmentSummary) Validate() error + type Environments []*Environment + func (v Environments) GetEnvByID(id string) (environment *Environment) + func (v Environments) Validate() error + type Folder struct + Name string + Note string + NumberOf map[string]int + func (v Folder) Validate() error + type FolderBrief struct + Title string + func (v FolderBrief) Validate() error + type FolderItem struct + ID string + Title string + func (v FolderItem) Validate() error + type ForeignKey struct + Columns []string + DeleteRule string + MatchOption string + Name string + RefTable TableKey + UpdateRule string + func (v ForeignKey) Validate() error + type ForeignKeys []*ForeignKey + func (v ForeignKeys) Validate() error + type HTTPHeaderItem struct + Name string + Value string + func (v HTTPHeaderItem) Validate() error + type HTTPHeaders []HTTPHeaderItem + func (v HTTPHeaders) Validate() error + type HTTPRequest struct + Content string + Headers HTTPHeaders + Method string + Parameters Parameters + Protocol string + TimeoutThresholdMs int + URL string + func (v HTTPRequest) Validate() error + type HTTPWidgetDef struct + Request HTTPRequest + func (v HTTPWidgetDef) Validate() error + type HideRecordsetColIf struct + Parameters []string + func (v HideRecordsetColIf) Validate() error + type HitAndMiss struct + ExistsIn []DiffDbRef + IsInModel bool + MissingIn []DiffDbRef + type Index struct + Columns []*IndexColumn + IsClustered bool + IsColumnStore bool + IsHash bool + IsPartial bool + IsPrimaryKey bool + IsUnique bool + IsUniqueConstraint bool + IsXML bool + Name string + Origin string + Type string + func (v Index) Validate() error + type IndexColumn struct + IsDescending bool + IsIncludedColumn bool + Name string + type Indexes []Index + func (v Indexes) Validate() error + type Issues struct + Schema []string + type ListOfTags struct + Tags []string + func (v ListOfTags) Validate() error + type OptionsValueCheck struct + Options []interface{} + Type string + func (v OptionsValueCheck) Validate() error + type Parameter struct + ID string + Type string + Value interface{} + type ParameterDef struct + DefaultValue interface{} + ID string + IsMultiValue bool + IsRequired bool + Lookup *ParameterLookup + MaxLength int + Meta *EntityFieldRef + MinLength int + Title string + Type string + func (v ParameterDef) Validate() error + type ParameterLookup struct + DB string + KeyFields []string + SQL string + type Parameters []ParameterDef + func (v Parameters) Validate() error + type ProjBoardBrief struct + Parameters Parameters + RequiredParams [][]string + func (v ProjBoardBrief) Validate() error + type ProjDbModelBrief struct + NumberOf ProjDbModelNumbers + type ProjDbModelNumbers struct + Schemas int + Tables int + Views int + type ProjDbServer struct + Catalogs DbCatalogs + Server ServerReference + func (v ProjDbServer) Validate() error + type ProjDbServerFile struct + Catalogs []string + func (v ProjDbServerFile) Validate() error + type ProjDbServerSummary struct + Catalogs []*DbCatalogSummary + DbServer ServerReference + type ProjDbServers []*ProjDbServer + func (v ProjDbServers) GetProjDbServer(ref ServerReference) *ProjDbServer + func (v ProjDbServers) Validate() error + type ProjEntityBrief struct + type ProjEnvBrief struct + type ProjEnvNumbers struct + Databases int + DbServers int + type ProjItemBrief struct + Folder string + ID string + Title string + func (v ProjItemBrief) Validate(isTitleRequired bool) error + type ProjectBrief struct + Access string + Repository *ProjectRepository + func (v *ProjectBrief) Validate() error + type ProjectCreated struct + At time.Time + type ProjectFile struct + Created *ProjectCreated + DbModels []*ProjDbModelBrief + Entities []*ProjEntityBrief + Environments []*ProjEnvBrief + Repository *ProjectRepository + func (v ProjectFile) Validate() error + type ProjectItem struct + Access string + UserIDs []string + func (v ProjectItem) Validate(isTitleRequired bool) error + type ProjectRepository struct + ProjectID string + Type string + WebURL string + func (v *ProjectRepository) Validate() error + type ProjectSummary struct + type PropertyDiff struct + Name string + type QueryDef struct + Draft bool + Parameters Parameters + Recordsets []RecordsetDefinition + Targets []QueryDefTarget + Text string + Type string + func (v QueryDef) Validate() error + type QueryDefBrief struct + Draft bool + Type string + func (v QueryDefBrief) Validate() error + type QueryDefTarget struct + Catalog string + Driver string + Host string + Port int + Protocol string + type QueryDefWithFolderPath struct + FolderPath string + func (v QueryDefWithFolderPath) Validate() error + type QueryDefs []QueryDef + func (v QueryDefs) Validate() error + type QueryFolder struct + Folders QueryFolders + Items QueryDefs + func (v QueryFolder) Validate() error + type QueryFolderBrief struct + Folders []*QueryFolderBrief + Items []*QueryDefBrief + func (v QueryFolderBrief) Validate() error + type QueryFolders []*QueryFolder + func (v QueryFolders) Validate() error + type QueryResult struct + Created time.Time + Driver string + EnvironmentID string + Recordsets []Recordset + Target string + func (v QueryResult) Validate() error + type ReadmeEncoder interface + DbCatalogToReadme func(w io.Writer, repository *ProjectRepository, dbServer ProjDbServer, ...) error + DbServerToReadme func(w io.Writer, repository *ProjectRepository, dbServer ProjDbServer) error + ProjectSummaryToReadme func(w io.Writer, project DatatugProject) error + TableToReadme func(w io.Writer, repository *ProjectRepository, catalog string, table *Table, ...) error + type Recordset struct + Columns []RecordsetColumn + Duration time.Duration + Rows [][]interface{} + func (v Recordset) Validate() error + type RecordsetBaseDef struct + ActiveIssues *Issues + AlternateKeys []UniqueKey + ForeignKeys ForeignKeys + PrimaryKey *UniqueKey + type RecordsetColumn struct + DbType string + Meta *EntityFieldRef + Name string + func (v RecordsetColumn) Validate() error + type RecordsetColumnDef struct + HideIf HideRecordsetColIf + Meta *EntityFieldRef + Name string + Required bool + Type string + func (v RecordsetColumnDef) Validate() error + type RecordsetColumnDefs []RecordsetColumnDef + func (v RecordsetColumnDefs) HasColumn(name string, caseSensitive bool) bool + func (v RecordsetColumnDefs) Validate() error + type RecordsetDefinition struct + Columns RecordsetColumnDefs + Errors []string + Files []string + JSONSchema string + Type string + func (v RecordsetDefinition) Validate() error + type RefByForeignKey struct + Columns []string + DeleteRule string + MatchOption string + Name string + UpdateRule string + type RegexpValueCheck struct + Regexp string + func (v RegexpValueCheck) Validate() error + type SQLCheck struct + Query string + func (v SQLCheck) Validate() error + type SQLWidgetDef struct + SQL SQLWidgetSettings + func (v *SQLWidgetDef) Validate() error + type SQLWidgetSettings struct + Query string + func (v SQLWidgetSettings) Validate() error + type SchemaDiff struct + TablesDiff TablesDiff + ViewsDiff TablesDiff + type SchemaModel struct + Tables TableModels + Views TableModels + func (v SchemaModel) Validate() error + type SchemaModels []*SchemaModel + func (v SchemaModels) GetByID(id string) (schemaModel *SchemaModel) + type SchemasDiff []SchemaDiff + type ServerReference struct + Driver string + Host string + Port int + func NewDbServer(driver, hostWithOptionalPort, sep string) (dbServer ServerReference, err error) + func (v ServerReference) Address() string + func (v ServerReference) FileName() string + func (v ServerReference) ID() string + func (v ServerReference) Validate() error + type ServerReferences []ServerReference + func (v ServerReferences) Validate() error + type StateByEnv map[string]*EnvState + func (v StateByEnv) Validate() error + type StringPattern struct + CaseSensitive bool + Type string + Value string + func (v StringPattern) Validate() error + type StringPatterns []*StringPattern + func (v StringPatterns) Validate() error + type TabWidget struct + Title string + Widget BoardWidget + type Table struct + Columns TableColumns + Indexes []*Index + RecordsCount *int + ReferencedBy TableReferencedBys + SQL string + func (v Table) Validate() error + type TableColumn struct + Constraints []string + func (v TableColumn) Validate() error + type TableColumns []*TableColumn + func (v TableColumns) ByPrimaryKeyPosition() sort.Interface + func (v TableColumns) Validate() error + type TableDiff struct + ColumnsDiff ColumnsDiff + type TableKey struct + Catalog string + Name string + Schema string + func (v TableKey) String() string + func (v TableKey) Validate() error + type TableKeys []TableKey + func (v TableKeys) Validate() error + type TableModel struct + ByEnv StateByEnv + Checks Checks + Columns ColumnModels + DbType string + func (v *TableModel) String() string + func (v *TableModel) Validate() error + type TableModels []*TableModel + func (v TableModels) GetByKey(k TableKey) *TableModel + func (v TableModels) GetByName(name string) *TableModel + type TableProps struct + DbType string + UniqueKeys []*UniqueKey + func (v TableProps) Validate() error + type TableReferencedBy struct + ForeignKeys []*RefByForeignKey + type TableReferencedBys []*TableReferencedBy + func (v TableReferencedBys) Validate() error + type Tables []*Table + func (v Tables) GetByKey(k TableKey) *Table + type TablesDiff []TableDiff + type TabsWidgetDef struct + Tabs []TabWidget + func (v TabsWidgetDef) Validate() error + type UniqueKey struct + Columns []string + IsClustered bool + Name string + func (v *UniqueKey) Validate() error + type UniqueKeys []UniqueKey + func (v UniqueKeys) Validate() error + type UserDatatugInfo struct + Stores map[string]DatatugStoreBrief + func (v UserDatatugInfo) Validate() error + type ValueRegexCheck struct + Regex string + type VarInfo struct + Type string + Value string + func (v VarInfo) Validate() error + type VarSetting struct + Max *int + Min *int + Type string + ValuePattern string + func (v VarSetting) Validate() error + type Variables struct + Vars map[string]VarInfo + func (v Variables) Validate() error + type VarsByID = map[string]VarInfo + type WidgetBase struct + Parameters Parameters + Title string + func (v WidgetBase) Validate(isTitleRequired bool) error