Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

28
LINES

< > BotCompany Repo | #1009107 // Read Firefox Bookmarks [abandoned, SqlJet can't read the db]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Transpiled version (1907L) is out of date.

!7

lib 1009105 lib 1009109

import org.tmatesoft.sqljet.core.table.*;
import org.tmatesoft.sqljet.core.schema.*;

p {
  File profileDir = mozillaDefaultProfileDir();
  if (profileDir == null) ret with print("No Firefox profile found");
  print("Using Firefox profile: " + f2s(profileDir));
  
  File placesFile = newFile(profileDir, "places.sqlite");
  if (placesFile.exists())
    print("Places DB found!");
  else
    fail("Places DB not found in: " + f2s(placesFile));
    
  SqlJetDb db = SqlJetDb.open(placesFile, false);
  try {
    print("DB opened!");
    ISqlJetSchema schema = db.getSchema();
    printAsciiHeading("Tables!");
    pnl(schema.getTableNames());
  } finally {
    db.close();
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wtqryiryparv

No comments. add comment

-
Snippet ID: #1009107
Snippet name: Read Firefox Bookmarks [abandoned, SqlJet can't read the db]
Eternal ID of this version: #1009107/12
Text MD5: 4753dc1ba2469a603ced6a58009dbaa3
Author: stefan
Category: javax / networking
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-12-14 16:30:32
Source code size: 733 bytes / 28 lines
Pitched / IR pitched: No / No
Views / Downloads: 423 / 572
Version history: 11 change(s)
Referenced in: