3 ms·
import sqlite3 conn = sqlite3.connect('%MEMORY%') Is there more to it than that?
by throwaway81523 3y ago
import sqlite3
conn = sqlite3.connect('%MEMORY%')
Is there more to it than that?
- jarito 3y agoSecond sentence in the linked GitHub: While SQLite supports the special filename :memory: that allows the creation of databases in memory, there is no built-in way to populate such a database using raw bytes without hitting disk as an intermediate step. This virtual filesystem overcomes that limitation.
- throwaway81523 3y agoI'm surprised writing to %MEMORY% hits the disk. Anyway ramdisks like tmpfs are a thing.