sql 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #------------------------------------------------------------------------------
  2. # $File: sql,v 1.6 2009/09/19 16:28:12 christos Exp $
  3. # sql: file(1) magic for SQL files
  4. #
  5. # From: "Marty Leisner" <mleisner@eng.mc.xerox.com>
  6. # Recognize some MySQL files.
  7. #
  8. 0 beshort 0xfe01 MySQL table definition file
  9. >2 byte x Version %d
  10. 0 belong&0xffffff00 0xfefe0300 MySQL MISAM index file
  11. >3 byte x Version %d
  12. 0 belong&0xffffff00 0xfefe0700 MySQL MISAM compressed data file
  13. >3 byte x Version %d
  14. 0 belong&0xffffff00 0xfefe0500 MySQL ISAM index file
  15. >3 byte x Version %d
  16. 0 belong&0xffffff00 0xfefe0600 MySQL ISAM compressed data file
  17. >3 byte x Version %d
  18. 0 string \376bin MySQL replication log
  19. #------------------------------------------------------------------------------
  20. # iRiver H Series database file
  21. # From Ken Guest <ken@linux.ie>
  22. # As observed from iRivNavi.iDB and unencoded firmware
  23. #
  24. 0 string iRivDB iRiver Database file
  25. >11 string >\0 Version %s
  26. >39 string iHP-100 [H Series]
  27. #------------------------------------------------------------------------------
  28. # SQLite database files
  29. # Ken Guest <ken@linux.ie>, Ty Sarna, Zack Weinberg
  30. #
  31. # Version 1 used GDBM internally; its files cannot be distinguished
  32. # from other GDBM files.
  33. #
  34. # Version 2 used this format:
  35. 0 string **\ This\ file\ contains\ an\ SQLite SQLite 2.x database
  36. # Version 3 of SQLite allows applications to embed their own "user version"
  37. # number in the database. Detect this and distinguish those files.
  38. 0 string SQLite\ format\ 3
  39. >60 string _MTN Monotone source repository
  40. >60 belong !0 SQLite 3.x database, user version %u
  41. >60 belong 0 SQLite 3.x database