<title>database: 'with-database' can now initialize new databases.</title>
<updated>2018-06-14T09:16:58+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
...</author>
<published>2018-06-04T13:40:09+00:00</published>
<link rel="alternate" type="text/html" href="http://trong.loang.net/~cnx/guix/commit/?id=3931c76154d4f418d5ea9acc5e47bf911d371c24"/>
<id>urn:sha1:3931c76154d4f418d5ea9acc5e47bf911d371c24</id>
<content type="text">
* nix/libstore/schema.sql: Rename to...
* guix/store/schema.sql: ... this.
* Makefile.am (nobase_dist_guilemodule_DATA): Add it.
* nix/local.mk (%D%/libstore/schema.sql.hh): Adjust accordingly.
* guix/store/database.scm (sql-schema): New variable.
(sqlite-exec, initialize-database, call-with-database): New procedures.
(with-database): Rewrite in terms of 'call-with-database'.
* tests/store-database.scm ("new database"): New test.
* guix/self.scm (compiled-guix)[*core-modules*]: Add 'schema.sql' to
#:extra-files.
</content>