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
+9-16Lines changed: 9 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -75,8 +75,8 @@ dbt_sqlite:
75
75
schema_directory: '/my_project/data'
76
76
77
77
# optional: semi-colon separated list of file paths for SQLite extensions to load.
78
-
#digest.so is needed to provide for snapshots to work; see README
79
-
extensions: "/path/to/sqlite-digest/digest.so"
78
+
#crypto.so is needed to provide for snapshots to work; see README
79
+
extensions: "/path/to/sqlean/crypto.so"
80
80
81
81
```
82
82
@@ -120,23 +120,16 @@ not worth the effort.
120
120
- This has been developed on Ubuntu 20.04, Python 3.8.5 (with sqlite 3.31.1),
121
121
dbt 0.18.1. It's largely untested elsewhere.
122
122
123
-
## Building the digest extension for SQLite
123
+
## SQLite Extensions
124
124
125
-
For snapshots to work, you need to build the `digest` extension to get an `md5()`
126
-
function. On Ubuntu, run:
125
+
For snapshots to work, you'll need the `crypto` module from SQLean to get an `md5()`
126
+
function. It's recommended that you install all the SQLean modules, as they provide
127
+
many common SQL functions missing from SQLite.
127
128
128
-
```
129
-
git clone https://github.com/mpdn/sqlite-digest
130
-
131
-
cd sqlite-digest
132
-
133
-
sudo apt install gcc libssl-dev libsqlite3-dev
134
-
135
-
make
136
-
```
129
+
Precompiled binaries from the [SQLean github repository](https://github.com/nalgeon/sqlean)
130
+
are available for download. You can also compile them yourself if you want.
137
131
138
-
This will create `digest.so`. Point to it in your profile config as shown in the
139
-
example above.
132
+
Point to these module files in your profile config as shown in the example above.
140
133
141
134
Mac OS seems to ship with [SQLite libraries that do not have support for loading extensions compiled in](https://docs.python.org/3/library/sqlite3.html#f1),
142
135
so this won't work "out of the box." Accordingly, snapshots won't work.
0 commit comments