Class FileRef

java.lang.Object
com.surrealdb.Native
com.surrealdb.FileRef

public class FileRef extends Native
Reference to a file stored in a SurrealDB bucket. Obtained from Value.getFile() when Value.isFile() is true. Holds its own reference to the file data, so it stays valid independently of the Value it was obtained from.
  • Method Details

    • getBucket

      public String getBucket()
      Returns the bucket name.
    • getKey

      public String getKey()
      Returns the file key (path within the bucket). Always starts with "/".