mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 17:02:25 -05:00 
			
		
		
		
	[chore] bump ncruces/go-sqlite3 to v0.25.0 (#3966)
This commit is contained in:
		
					parent
					
						
							
								6473886c8e
							
						
					
				
			
			
				commit
				
					
						db4b857159
					
				
			
		
					 36 changed files with 636 additions and 578 deletions
				
			
		
							
								
								
									
										22
									
								
								vendor/github.com/ncruces/go-sqlite3/README.md
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								vendor/github.com/ncruces/go-sqlite3/README.md
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -65,17 +65,20 @@ db.QueryRow(`SELECT sqlite_version()`).Scan(&version) | |||
| This module replaces the SQLite [OS Interface](https://sqlite.org/vfs.html) | ||||
| (aka VFS) with a [pure Go](vfs/) implementation, | ||||
| which has advantages and disadvantages. | ||||
| 
 | ||||
| Read more about the Go VFS design [here](vfs/README.md). | ||||
| 
 | ||||
| Because each database connection executes within a Wasm sandboxed environment, | ||||
| memory usage will be higher than alternatives. | ||||
| 
 | ||||
| ### Testing | ||||
| 
 | ||||
| This project aims for [high test coverage](https://github.com/ncruces/go-sqlite3/wiki/Test-coverage-report). | ||||
| It also benefits greatly from [SQLite's](https://sqlite.org/testing.html) and | ||||
| [wazero's](https://tetrate.io/blog/introducing-wazero-from-tetrate/#:~:text=Rock%2Dsolid%20test%20approach) thorough testing. | ||||
| [wazero's](https://tetrate.io/blog/introducing-wazero-from-tetrate/#:~:text=Rock%2Dsolid%20test%20approach) | ||||
| thorough testing. | ||||
| 
 | ||||
| Every commit is [tested](https://github.com/ncruces/go-sqlite3/wiki/Support-matrix) on | ||||
| Linux (amd64/arm64/386/riscv64/ppc64le/s390x), macOS (amd64/arm64), | ||||
| Linux (amd64/arm64/386/riscv64/ppc64le/s390x), macOS (arm64/amd64), | ||||
| Windows (amd64), FreeBSD (amd64/arm64), OpenBSD (amd64), NetBSD (amd64/arm64), | ||||
| DragonFly BSD (amd64), illumos (amd64), and Solaris (amd64). | ||||
| 
 | ||||
|  | @ -84,12 +87,21 @@ The Go VFS is tested by running SQLite's | |||
| 
 | ||||
| ### Performance | ||||
| 
 | ||||
| Perfomance of the [`database/sql`](https://pkg.go.dev/database/sql) driver is | ||||
| Performance of the [`database/sql`](https://pkg.go.dev/database/sql) driver is | ||||
| [competitive](https://github.com/cvilsmeier/go-sqlite-bench) with alternatives. | ||||
| 
 | ||||
| The Wasm and VFS layers are also tested by running SQLite's | ||||
| The Wasm and VFS layers are also benchmarked by running SQLite's | ||||
| [speedtest1](https://github.com/sqlite/sqlite/blob/master/test/speedtest1.c). | ||||
| 
 | ||||
| ### Concurrency | ||||
| 
 | ||||
| This module behaves similarly to SQLite in [multi-thread](https://sqlite.org/threadsafe.html) mode: | ||||
| it is goroutine-safe, provided that no single database connection, or object derived from it, | ||||
| is used concurrently by multiple goroutines. | ||||
| 
 | ||||
| The [`database/sql`](https://pkg.go.dev/database/sql) API is safe to use concurrently, | ||||
| according to its documentation. | ||||
| 
 | ||||
| ### FAQ, issues, new features | ||||
| 
 | ||||
| For questions, please see [Discussions](https://github.com/ncruces/go-sqlite3/discussions/categories/q-a). | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue