From: Christos Zoulas Date: Mon, 22 Jan 2007 06:40:50 +0000 (+0000) Subject: sqlite improvements X-Git-Tag: FILE5_05~659 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=555b7132ca4ec11d356db29337949d06134bd606;p=file sqlite improvements --- diff --git a/magic/Magdir/database b/magic/Magdir/database index b2f68d98..aef8469c 100644 --- a/magic/Magdir/database +++ b/magic/Magdir/database @@ -210,7 +210,3 @@ 16 string MIT-MAGIC-COOKIE-1 X11 Xauthority data 17 string MIT-MAGIC-COOKIE-1 X11 Xauthority data 18 string MIT-MAGIC-COOKIE-1 X11 Xauthority data - -# SQLite (Ty Sarna) -0 string **\ This\ file\ contains\ an\ SQLite SQLite Database ->&1 regex [^\ ]+ Version %s diff --git a/magic/Magdir/sql b/magic/Magdir/sql index 016e030b..21c6e515 100644 --- a/magic/Magdir/sql +++ b/magic/Magdir/sql @@ -27,8 +27,19 @@ >39 string iHP-100 [H Series] #------------------------------------------------------------------------------ -# SQLite database file -# From Ken Guest +# SQLite database files +# Ken Guest , Ty Sarna, Zack Weinberg +# +# Version 1 used GDBM internally; its files cannot be distinguished +# from other GDBM files. # -0 string SQLite SQLite database ->14 string >\0 (Version %s) +# Version 2 used this format: +0 string **\ This\ file\ contains\ an\ SQLite SQLite 2.x database + +# Version 3 of SQLite allows applications to embed their own "user version" +# number in the database. Detect this and distinguish those files. + +0 string SQLite\ format\ 3 +>60 string _MTN Monotone source repository +>60 belong !0 SQLite 3.x database, user version %u +>60 belong 0 SQLite 3.x database