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. Valid only for the lifetime of the Value it was obtained from; do not retain a reference after that Value is no longer in use.
  • 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 "/".