You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
2.0 KiB
57 lines
2.0 KiB
package neo4j |
|
|
|
import ( |
|
"errors" |
|
|
|
"next.orly.dev/pkg/database" |
|
) |
|
|
|
// Blob storage methods - Neo4j does not support blob storage |
|
// These are stub implementations that return errors |
|
|
|
var errBlobNotSupported = errors.New("blob storage not supported in Neo4j backend") |
|
|
|
// SaveBlob stores a blob with its metadata (not supported in Neo4j) |
|
func (n *N) SaveBlob(sha256Hash []byte, data []byte, pubkey []byte, mimeType string, extension string) error { |
|
return errBlobNotSupported |
|
} |
|
|
|
// GetBlob retrieves blob data by SHA256 hash (not supported in Neo4j) |
|
func (n *N) GetBlob(sha256Hash []byte) (data []byte, metadata *database.BlobMetadata, err error) { |
|
return nil, nil, errBlobNotSupported |
|
} |
|
|
|
// HasBlob checks if a blob exists (not supported in Neo4j) |
|
func (n *N) HasBlob(sha256Hash []byte) (exists bool, err error) { |
|
return false, errBlobNotSupported |
|
} |
|
|
|
// DeleteBlob deletes a blob and its metadata (not supported in Neo4j) |
|
func (n *N) DeleteBlob(sha256Hash []byte, pubkey []byte) error { |
|
return errBlobNotSupported |
|
} |
|
|
|
// ListBlobs lists all blobs for a given pubkey (not supported in Neo4j) |
|
func (n *N) ListBlobs(pubkey []byte, since, until int64) ([]*database.BlobDescriptor, error) { |
|
return nil, errBlobNotSupported |
|
} |
|
|
|
// GetBlobMetadata retrieves only metadata for a blob (not supported in Neo4j) |
|
func (n *N) GetBlobMetadata(sha256Hash []byte) (*database.BlobMetadata, error) { |
|
return nil, errBlobNotSupported |
|
} |
|
|
|
// GetTotalBlobStorageUsed calculates total storage used by a pubkey in MB (not supported in Neo4j) |
|
func (n *N) GetTotalBlobStorageUsed(pubkey []byte) (totalMB int64, err error) { |
|
return 0, errBlobNotSupported |
|
} |
|
|
|
// SaveBlobReport stores a report for a blob (not supported in Neo4j) |
|
func (n *N) SaveBlobReport(sha256Hash []byte, reportData []byte) error { |
|
return errBlobNotSupported |
|
} |
|
|
|
// ListAllBlobUserStats returns storage statistics for all users (not supported in Neo4j) |
|
func (n *N) ListAllBlobUserStats() ([]*database.UserBlobStats, error) { |
|
return nil, errBlobNotSupported |
|
}
|
|
|