Documentation
¶
Overview ¶
internal/storage/db/postgres/attributes.go
internal/storage/db/postgres/db.go
internal/storage/db/postgres/links.go
internal/storage/db/postgres/nodes.go
internal/storage/db/postgres/nodetypes.go
internal/storage/db/postgres/valuesets.go
internal/storage/db/postgres/versions.go
Index ¶
- type CreateNodeTypeParams
- type DB
- func (d *DB) Close() error
- func (d *DB) CreateDocumentVersion(ctx context.Context, nodeID string, fileSize int64, checksum string) (*models.DocumentVersion, error)
- func (d *DB) CreateLink(ctx context.Context, params CreateLinkParams) (*models.Link, error)
- func (d *DB) CreateNode(ctx context.Context, params CreateNodeParams) (*models.Node, error)
- func (d *DB) CreateNodeType(ctx context.Context, params CreateNodeTypeParams) (*models.NodeType, error)
- func (d *DB) CreateNodeWithAttributes(ctx context.Context, nodeParams CreateNodeParams, attrs []Attribute) (*models.Node, error)
- func (d *DB) CreateValueSet(ctx context.Context, params CreateValueSetParams) (*models.ValueSet, error)
- func (d *DB) GetNode(ctx context.Context, id int) (*models.Node, error)
- func (d *DB) ListDocumentVersions(ctx context.Context, nodeID string) ([]models.DocumentVersion, error)
- func (d *DB) ListLinks(ctx context.Context, params ListLinksParams) ([]models.Link, error)
- func (d *DB) ListNodeTypes(ctx context.Context) ([]models.NodeType, error)
- func (d *DB) Ping() error
- func (d *DB) SetHooks(h *hooks.NodeHooks)
- func (d *DB) SetNodeAttribute(ctx context.Context, params SetNodeAttributeParams) (*models.Attribute, error)
- func (db *DB) SoftDeleteNode(ctx context.Context, params SoftDeleteNodeParams) error
- func (d *DB) UpdateNode(ctx context.Context, params UpdateNodeParams) (*models.Node, error)
- func (d *DB) UpdateValueSet(ctx context.Context, params UpdateValueSetParams) (*models.ValueSet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateNodeTypeParams ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) CreateDocumentVersion ¶
func (*DB) CreateLink ¶
func (*DB) CreateNode ¶
func (*DB) CreateNodeType ¶
func (*DB) CreateNodeWithAttributes ¶
func (*DB) CreateValueSet ¶
func (*DB) ListDocumentVersions ¶
func (*DB) ListNodeTypes ¶
func (*DB) SetNodeAttribute ¶
func (*DB) SoftDeleteNode ¶
func (*DB) UpdateNode ¶
Click to show internal directories.
Click to hide internal directories.