Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-72

more conveniant interface for providing extra meta data for gridfiles

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 0.90.0
    • 0.3
    • None
    • all

    Description

      My interpretation of gridfile_get_metadata() is to obtain user-defined metadata, where the user-defined metadata is embedded in the "file-system" specific metadata (such as md5, upload date, content type, ...). At least, gridfile_get_metadata() tries to access the object named "metadata" and returns its content, which is - without other operations - empty.

      Currently, i use the plain mongo db interface to add the additional metadata with separate operations. It would be nice, to pass this additional (user-defined) meta-data as bson field to the following file-creating operations.

      gridfs_store_buffer()
      gridfs_insert_file()

      if backward compatibility is already an issue, providing new names for this functions would help.

      Attachments

        Activity

          People

            jason.carey@mongodb.com Jason Carey
            gustafn Gustaf Neumann
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: