mozilla / mentat

UNMAINTAINED A persistent, relational store inspired by Datomic and DataScript.
https://mozilla.github.io/mentat/
Apache License 2.0
1.65k stars 115 forks source link

Allow callers to specify SQL options #20

Open rnewman opened 8 years ago

rnewman commented 8 years ago

When opening or creating a database, we should set reasonable defaults (and allow consumers to override). In particular:

See https://github.com/mozilla/firefox-ios/blob/01a471f60424224bc8db8f29f01c00cebb99f1ef/Storage/ThirdParty/SwiftData.swift#L414 for one example.

rnewman commented 8 years ago

We set defaults for WAL, page size, and foreign key support. Morphing this issue to allow for configurability.