Where to call SQL close() ?
              in 
             Contributed Library Questions 
              •  
              2 years ago    
            
 
           
             Hi, just read the documentation but not sure how that works ?
            
             
             
            
             
            
            
             
            
            
             
            
             
            
            
 
            
           
              AFAIU, close() methods call SQL object dispose() method which itself register to the callback function papplet.registerDispose ?
             
            
             Does that means i have to call close() like that ?
            
            - void setup() {
- do the db connection here
- }
- void draw() {
- //do some query here or in setup
- }
- void dispose() {
- msqlobject.close();
- }
              Or should i put it in stop() method ?
             
            
             I'm sorry i'm just confuse about how to end a database connection properly
            
 
            
              
              1  
            
 
            
 
 
          