add: database transactions
This commit is contained in:
		
							parent
							
								
									7fa462ef1d
								
							
						
					
					
						commit
						7c6eed8dc2
					
				
					 8 changed files with 119 additions and 30 deletions
				
			
		| 
						 | 
				
			
			@ -5,7 +5,23 @@
 | 
			
		|||
 | 
			
		||||
extern sqlite3 *global_database;
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
database_init();
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
database_free();
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
database_migrate();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
database_transaction_begin();
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
database_transaction_commit();
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
database_transaction_rollback();
 | 
			
		||||
 | 
			
		||||
#endif /* CORE_DATABASE_H */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue