commit | 4df44f4fca79979a03d700e6b0466276aec1fcec | [log] [tgz] |
---|---|---|
author | Janis Danisevskis <jdanis@google.com> | Wed Aug 26 14:40:03 2020 -0700 |
committer | Janis Danisevskis <jdanis@google.com> | Thu Sep 03 08:52:32 2020 -0700 |
tree | 8ac2ef0986658c09297246b94934645cefd02267 | |
parent | e24f347d2fedd1b91b22d948adf67e0005602344 [diff] |
Revise database initialization. Initializing the Keystore 2.0 database will now open the files persistent.sql and perboot.sql. Tables are created, if they don't exist, once per service startup instead of on every connection instantiation. In the test situation we make use of the module private visibility to create in-memory test databases or attaching to a set of temporary files. Test: keystore2_test Bug: 159370859 Change-Id: I88594dabc72483779d980e81dbc05f2b7a687437