palate 0.3.7

File type detection combining tft and hyperpolyglot
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Dim dbFile As FolderItem
Dim db As New SQLiteDatabase
dbFile = GetFolderItem("Employees.sqlite")
db.DatabaseFile = dbFile
If db.Connect Then
  db.SQLExecute("BEGIN TRANSACTION")
  db.SQLExecute ("INSERT INTO Employees (Name,Job,YearJoined) VALUES "_
    +"('Dr.Strangelove','Advisor',1962)")
  If db.Error then
    MsgBox("Error: " + db.ErrorMessage)
    db.Rollback
  Else
    db.Commit
  End If
Else
  MsgBox("The database couldn't be opened. Error: " + db.ErrorMessage)
End If