You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49Lines changed: 49 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,55 @@ It then exposes a method, `SqliteExtensions::UUID.to_path`, which returns the lo
74
74
75
75
This can be passed to [sqlite3](https://github.com/sparklemotion/sqlite3-ruby) in `Database.new(extensions: [])` or `Database#load_extension`.
76
76
77
+
## Issues
78
+
79
+
### Missing `.load` command
80
+
81
+
The default `sqlite3` on MacOS doesn't allow loading runtime extensions, so you'll need to use the version from `brew` instead (`brew install sqlite3`).
82
+
83
+
```console
84
+
% /usr/bin/sqlite3
85
+
SQLite version 3.43.2 2023-10-10 13:08:14
86
+
Enter ".help" for usage hints.
87
+
Connected to a transient in-memory database.
88
+
Use ".open FILENAME" to reopen on a persistent database.
89
+
sqlite> .load
90
+
Error: unknown command or invalid arguments: "load". Enter ".help" for help
91
+
```
92
+
93
+
You can do so by following the suggestions from `brew info sqlite3`:
94
+
95
+
```console
96
+
% brew info sqlite3
97
+
...
98
+
==> Caveats
99
+
sqlite is keg-only, which means it was not symlinked into /opt/homebrew,
100
+
because macOS already provides this software and installing another version in
101
+
parallel can cause all kinds of trouble.
102
+
103
+
If you need to have sqlite first in your PATH, run:
0 commit comments