尝试使用schemacrawler转储High Sierra V10.13.6(17G3025)上Mac Photos应用程序版本3.0(3291.13.210)使用的SQLlite数据库的模式。
schemacrawler -server sqlite-数据库“ Claire's Photos.photoslibrary / database / photos.db” -user -password -c brief -loglevel CONFIG
以下是带有日志级别CONFIG和命令摘要的输出的片段:
Dec 02, 2018 12:38:52 PM schemacrawler.crawl.SchemaCrawler crawlTables
INFO: Retrieved 303 tables
Dec 02, 2018 12:38:52 PM schemacrawler.crawl.SchemaCrawler lambda$crawlTables$19
INFO: Retrieving table columns
Dec 02, 2018 12:38:52 PM schemacrawler.crawl.TableColumnRetriever retrieveHiddenTableColumns
INFO: No hidden table columns SQL provided
Dec 02, 2018 12:38:52 PM schemacrawler.crawl.TableColumnRetriever retrieveTableColumns
INFO: Retrieving table columns
SchemaCrawler 15.02.02
Error: Could not retrieve table columns for table <Array_VirtualReader>: [SQLITE_ERROR] SQL error or missing database (no such module: Array_VirtualReaderModule)
Dec 02, 2018 12:38:52 PM us.fatehi.commandlineparser.CommandLineUtility logSafeArguments
INFO: Environment:
SchemaCrawler 15.02.02
Mac OS X 10.13.6
Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
Dec 02, 2018 12:38:52 PM us.fatehi.commandlineparser.CommandLineUtility logFullStackTrace
SEVERE: Could not retrieve table columns for table <Array_VirtualReader>: [SQLITE_ERROR] SQL error or missing database (no such module: Array_VirtualReaderModule)
schemacrawler.schemacrawler.SchemaCrawlerException: Could not retrieve table columns for table <Array_VirtualReader>: [SQLITE_ERROR] SQL error or missing database (no such module: Array_VirtualReaderModule)
at schemacrawler.crawl.SchemaCrawler.crawlTables(SchemaCrawler.java:720)
at schemacrawler.crawl.SchemaCrawler.crawl(SchemaCrawler.java:779)
at schemacrawler.tools.catalogloader.SchemaCrawlerCatalogLoader.loadCatalog(SchemaCrawlerCatalogLoader.java:99)
at schemacrawler.tools.executable.SchemaCrawlerExecutable.loadCatalog(SchemaCrawlerExecutable.java:220)
at schemacrawler.tools.executable.SchemaCrawlerExecutable.execute(SchemaCrawlerExecutable.java:121)
at schemacrawler.tools.commandline.SchemaCrawlerCommandLine.execute(SchemaCrawlerCommandLine.java:135)
at schemacrawler.Main.main(Main.java:92)
Caused by: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such module: Array_VirtualReaderModule)
at org.sqlite.core.DB.newSQLException(DB.java:941)
at org.sqlite.core.DB.newSQLException(DB.java:953)
at org.sqlite.core.DB.throwex(DB.java:918)
at org.sqlite.core.NativeDB.prepare_utf8(Native Method)
at org.sqlite.core.NativeDB.prepare(NativeDB.java:134)
at org.sqlite.core.DB.prepare(DB.java:257)
at org.sqlite.jdbc3.JDBC3Statement.executeQuery(JDBC3Statement.java:73)
at org.sqlite.jdbc3.JDBC3DatabaseMetaData.getColumns(JDBC3DatabaseMetaData.java:1241)
at schemacrawler.crawl.TableColumnRetriever.retrieveTableColumnsFromMetadata(TableColumnRetriever.java:339)
at schemacrawler.crawl.TableColumnRetriever.retrieveTableColumns(TableColumnRetriever.java:118)
at schemacrawler.crawl.SchemaCrawler.lambda$crawlTables$19(SchemaCrawler.java:580)
at sf.util.StopWatch.time(StopWatch.java:185)
at schemacrawler.crawl.SchemaCrawler.crawlTables(SchemaCrawler.java:575)
... 6 more