Page 1 of 1

Re: Database Plugin Version

Posted: Fri Oct 19, 2012 1:57 pm
by Kiffi
Guimauve wrote:So it is possible to add a command to return the Database Plugin Version as string

Code: Select all

UseSQLiteDatabase()

Procedure.s GetSQLiteVersion()
  OpenDatabase(0, ":memory:", "", "", #PB_Database_SQLite)
  DatabaseQuery(0, "Select sqlite_version()")
  NextDatabaseRow(0)
  ProcedureReturn GetDatabaseString(0,0)
EndProcedure

Debug GetSQLiteVersion()
Greetings ... Kiffi

Re: Database Plugin Version

Posted: Fri Oct 19, 2012 2:09 pm
by Guimauve
Hello,

@Kiffi : Thanks for the code snippet it will be useful.

I have found the information here : http://www.purebasic.fr/english/viewtop ... 7&p=381341

A native command to do this can be a great addition.

Best regards
Guimauve