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

more conveniant interface for providing extra meta data for gridfiles

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 0.90.0
    • Affects Version/s: 0.3
    • Component/s: None
    • Environment:
      all

      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.

            Assignee:
            mira.carey@mongodb.com Mira Carey
            Reporter:
            gustafn Gustaf Neumann
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: