It is currently Sun Jul 21, 2019 1:18 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Re: Database Plugin Version
PostPosted: Fri Oct 19, 2012 1:57 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 1009
Location: Amphibios 9
Guimauve wrote:
So it is possible to add a command to return the Database Plugin Version as string

Code:
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

_________________
Can't decide if i need a hug, an XXL coffee, 6 shots of vodka or 2 weeks of sleep.


Top
 Profile  
Reply with quote  
 Post subject: Re: Database Plugin Version
PostPosted: Fri Oct 19, 2012 2:09 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Oct 22, 2003 2:51 am
Posts: 743
Location: Canada
Hello,

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

I have found the information here : http://www.purebasic.fr/english/viewtopic.php?f=14&t=50027&p=381341

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

Best regards
Guimauve

_________________
Dear Optimist, Pessimist,
and Realist,

While you guys were
busy arguing about the
glass of water, I DRANK IT !

Sincerely,
the Opportunist


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye