Skip to content

Commit 88f36aa

Browse files
committed
recommend using SQLean
1 parent 814a5ba commit 88f36aa

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

README.md

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ dbt_sqlite:
7575
schema_directory: '/my_project/data'
7676

7777
# 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"
8080

8181
```
8282

@@ -120,23 +120,16 @@ not worth the effort.
120120
- This has been developed on Ubuntu 20.04, Python 3.8.5 (with sqlite 3.31.1),
121121
dbt 0.18.1. It's largely untested elsewhere.
122122

123-
## Building the digest extension for SQLite
123+
## SQLite Extensions
124124

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.
127128

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.
137131

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.
140133

141134
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),
142135
so this won't work "out of the box." Accordingly, snapshots won't work.

0 commit comments

Comments
 (0)