mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 17:02:25 -05:00 
			
		
		
		
	[chore] Upgrade to SQLite 3.50 (#4218)
# Description Upgrades ncruces/go-sqlite3 to 0.26 which includes SQLite 3.50. ## Checklist Please put an x inside each checkbox to indicate that you've read and followed it: `[ ]` -> `[x]` If this is a documentation change, only the first checkbox must be filled (you can delete the others if you want). - [x] I/we have read the [GoToSocial contribution guidelines](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md). - [ ] I/we have discussed the proposed changes already, either in an issue on the repository, or in the Matrix chat. - [x] I/we have not leveraged AI to create the proposed changes. - [ ] I/we have performed a self-review of added code. - [ ] I/we have written code that is legible and maintainable by others. - [ ] I/we have commented the added code, particularly in hard-to-understand areas. - [ ] I/we have made any necessary changes to documentation. - [ ] I/we have added tests that cover new code. - [ ] I/we have run tests and they pass locally with the changes. - [ ] I/we have run `go fmt ./...` and `golangci-lint run`. Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4218 Co-authored-by: Daenney <daenney@noreply.codeberg.org> Co-committed-by: Daenney <daenney@noreply.codeberg.org>
This commit is contained in:
		
					parent
					
						
							
								d9e8d844e1
							
						
					
				
			
			
				commit
				
					
						3b46eb6a9e
					
				
			
		
					 16 changed files with 71 additions and 39 deletions
				
			
		
							
								
								
									
										31
									
								
								vendor/github.com/ncruces/go-sqlite3/README.md
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										31
									
								
								vendor/github.com/ncruces/go-sqlite3/README.md
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -30,10 +30,10 @@ db.QueryRow(`SELECT sqlite_version()`).Scan(&version) | |||
| 
 | ||||
| - [`github.com/ncruces/go-sqlite3`](https://pkg.go.dev/github.com/ncruces/go-sqlite3) | ||||
|   wraps the [C SQLite API](https://sqlite.org/cintro.html) | ||||
|   ([example usage](https://pkg.go.dev/github.com/ncruces/go-sqlite3#example-package)). | ||||
|   ([example](https://pkg.go.dev/github.com/ncruces/go-sqlite3#example-package)). | ||||
| - [`github.com/ncruces/go-sqlite3/driver`](https://pkg.go.dev/github.com/ncruces/go-sqlite3/driver) | ||||
|   provides a [`database/sql`](https://pkg.go.dev/database/sql) driver | ||||
|   ([example usage](https://pkg.go.dev/github.com/ncruces/go-sqlite3/driver#example-package)). | ||||
|   ([example](https://pkg.go.dev/github.com/ncruces/go-sqlite3/driver#example-package)). | ||||
| - [`github.com/ncruces/go-sqlite3/embed`](https://pkg.go.dev/github.com/ncruces/go-sqlite3/embed) | ||||
|   embeds a build of SQLite into your application. | ||||
| - [`github.com/ncruces/go-sqlite3/vfs`](https://pkg.go.dev/github.com/ncruces/go-sqlite3/vfs) | ||||
|  | @ -44,12 +44,19 @@ db.QueryRow(`SELECT sqlite_version()`).Scan(&version) | |||
| ### Advanced features | ||||
| 
 | ||||
| - [incremental BLOB I/O](https://sqlite.org/c3ref/blob_open.html) | ||||
|   ([example](https://pkg.go.dev/github.com/ncruces/go-sqlite3/ext/blobio#example-package)) | ||||
| - [nested transactions](https://sqlite.org/lang_savepoint.html) | ||||
|   ([example](https://pkg.go.dev/github.com/ncruces/go-sqlite3/driver#example-Savepoint)) | ||||
| - [custom functions](https://sqlite.org/c3ref/create_function.html) | ||||
|   ([example](https://pkg.go.dev/github.com/ncruces/go-sqlite3#example-Conn.CreateFunction)) | ||||
| - [virtual tables](https://sqlite.org/vtab.html) | ||||
|   ([example](https://pkg.go.dev/github.com/ncruces/go-sqlite3#example-CreateModule)) | ||||
| - [custom VFSes](https://sqlite.org/vfs.html) | ||||
|   ([examples](vfs/README.md#custom-vfses)) | ||||
| - [online backup](https://sqlite.org/backup.html) | ||||
|   ([example](https://pkg.go.dev/github.com/ncruces/go-sqlite3/driver#Conn)) | ||||
| - [JSON support](https://sqlite.org/json1.html) | ||||
|   ([example](https://pkg.go.dev/github.com/ncruces/go-sqlite3/driver#example-package-Json)) | ||||
| - [math functions](https://sqlite.org/lang_mathfunc.html) | ||||
| - [full-text search](https://sqlite.org/fts5.html) | ||||
| - [geospatial search](https://sqlite.org/geopoly.html) | ||||
|  | @ -57,7 +64,6 @@ db.QueryRow(`SELECT sqlite_version()`).Scan(&version) | |||
| - [statistics functions](https://pkg.go.dev/github.com/ncruces/go-sqlite3/ext/stats) | ||||
| - [encryption at rest](vfs/adiantum/README.md) | ||||
| - [many extensions](ext/README.md) | ||||
| - [custom VFSes](vfs/README.md#custom-vfses) | ||||
| - [and more…](embed/README.md) | ||||
| 
 | ||||
| ### Caveats | ||||
|  | @ -77,10 +83,19 @@ 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. | ||||
| 
 | ||||
| Every commit is [tested](https://github.com/ncruces/go-sqlite3/wiki/Support-matrix) on | ||||
| 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). | ||||
| Every commit is tested on: | ||||
| * Linux: amd64, arm64, 386, riscv64, ppc64le, s390x | ||||
| * macOS: amd64, arm64 | ||||
| * Windows: amd64 | ||||
| * BSD: | ||||
|   * FreeBSD: amd64, arm64 | ||||
|   * OpenBSD: amd64 | ||||
|   * NetBSD: amd64, arm64 | ||||
|   * DragonFly BSD: amd64 | ||||
| * illumos: amd64 | ||||
| * Solaris: amd64 | ||||
| 
 | ||||
| Certain operating system and CPU combinations have some limitations. See the [support matrix](https://github.com/ncruces/go-sqlite3/wiki/Support-matrix) for a complete overview. | ||||
| 
 | ||||
| The Go VFS is tested by running SQLite's | ||||
| [mptest](https://github.com/sqlite/sqlite/blob/master/mptest/mptest.c). | ||||
|  | @ -118,4 +133,4 @@ and features we're working on, planning to work on, or asking for help with. | |||
| - [`modernc.org/sqlite`](https://pkg.go.dev/modernc.org/sqlite) | ||||
| - [`crawshaw.io/sqlite`](https://pkg.go.dev/crawshaw.io/sqlite) | ||||
| - [`github.com/mattn/go-sqlite3`](https://pkg.go.dev/github.com/mattn/go-sqlite3) | ||||
| - [`github.com/zombiezen/go-sqlite`](https://pkg.go.dev/github.com/zombiezen/go-sqlite) | ||||
| - [`github.com/zombiezen/go-sqlite`](https://pkg.go.dev/github.com/zombiezen/go-sqlite) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue