Menu

#30 An alternative to using File to open databases

Unnassigned
closed
nobody
None
1
2015-05-06
2015-03-30
Trejkaz
No

We're trying to move from using File to using Java 7's replacement, Path.

DatabaseBuilder currently forces us to provide a File. This means that in some situations, we have to copy the database to another filesystem in order for Jackcess to update it and then copy it back to where it's supposed to be, which is awkward.

If it allowed passing Path, that would be perfect.

If you can't build against Java 7 for some reason, allowing passing something like FileChannel might be a reasonable compromise. You could also abstract out your own concept of what a file is, which we could implement on top of path or on top of our own existing abstraction.

Discussion

  • Trejkaz

    Trejkaz - 2015-04-01

    Yeah, definitely. Not sure how I missed that one. Something to investigate once I get a free moment that isn't right before a release of our own stuff.

     
    • James Ahlborn

      James Ahlborn - 2015-05-05

      any further feedback on this?

       
      • Trejkaz

        Trejkaz - 2015-05-06

        Yeah, what's there looks like it will work for us.

         
  • James Ahlborn

    James Ahlborn - 2015-05-06
    • status: open --> closed
     
  • James Ahlborn

    James Ahlborn - 2015-05-06

    Closing this for now as FileChannel is already supported and i don't think jackcess will be requiring Java 7 anytime soon.

     

Log in to post a comment.