Just starting out? Need help? Post your questions and find answers here.
			
		
		
			
				
																			
								t57042 							 
						Enthusiast 			
		Posts:  203  		Joined:  Fri Feb 22, 2008 12:28 pm 		
		
											Location:  Belgium 
							
						
		 
		
						
						
													
							
						
									
						Post 
					 
								by t57042   »  Mon Dec 18, 2017 5:21 pm 
			
			
			
			
			Why is this not working?
I want to set the busy_timeout, but I can't even read it!
searched whole day.
Richard
Code: Select all 
UseSQLiteDatabase() 
OpenDatabase(0, "test.db", "", "")
DatabaseQuery(0,"pragma busy_timout")
While NextDatabaseRow(0)
  col$= GetDatabaseString(0,0)
  Debug col$
Wend  
			
			
									
									
						 
		 
				
		
		 
	 
				
			
		
		
			
				
								skywalk 							 
						Addict 			
		Posts:  4242  		Joined:  Wed Dec 23, 2009 10:14 pm 		
		
											Location:  Boston, MA 
							
						
		 
		
						
						
													
							
						
									
						Post 
					 
								by skywalk   »  Mon Dec 18, 2017 5:30 pm 
			
			
			
			
			typo tim[e]out
			
			
									
									The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
						 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								t57042 							 
						Enthusiast 			
		Posts:  203  		Joined:  Fri Feb 22, 2008 12:28 pm 		
		
											Location:  Belgium 
							
						
		 
		
						
						
													
							
						
									
						Post 
					 
								by t57042   »  Mon Dec 18, 2017 5:54 pm 
			
			
			
			
			thanks, I feel stupid
			
			
									
									
						 
		 
				
		
		 
	 
	
						
		
		
			
				
								skywalk 							 
						Addict 			
		Posts:  4242  		Joined:  Wed Dec 23, 2009 10:14 pm 		
		
											Location:  Boston, MA 
							
						
		 
		
						
						
													
							
						
									
						Post 
					 
								by skywalk   »  Mon Dec 18, 2017 6:19 pm 
			
			
			
			
			Why are you altering the timeout? 
My defaults to 20sec, which handles antivirus locks or scans of database. 
Do you need to timeout faster?
			
			
									
									The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
						 
		 
				
		
		 
	 
	
						
		
		
			
				
																			
								t57042 							 
						Enthusiast 			
		Posts:  203  		Joined:  Fri Feb 22, 2008 12:28 pm 		
		
											Location:  Belgium 
							
						
		 
		
						
						
													
							
						
									
						Post 
					 
								by t57042   »  Mon Dec 18, 2017 6:36 pm 
			
			
			
			
			When the timout is too high i have to wait too long while testing. 
It has to be set each time the database is connected. 
 
I am playing with multiple users. 
I know Sqlite is not made for multiuser use but am trying it anyway. 
I use MariaDB (mysql) as well, but would like to have a "serverless, zeroconfiguration db", capable of concurrency) 
 
I have it working in harbour, so it should work in Purebasic as well. 
 
When I have it running I'll post a demo 
regards 
 
R. Peeters