Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52321 - Sqlite cache backend for portage
Summary: Sqlite cache backend for portage
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-05-29 00:21 UTC by Karol Wojtaszek (RETIRED)
Modified: 2005-10-07 09:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
initialize database (init.sh,82 bytes, text/plain)
2004-05-29 00:22 UTC, Karol Wojtaszek (RETIRED)
Details
modules file (modules,154 bytes, text/plain)
2004-05-29 00:22 UTC, Karol Wojtaszek (RETIRED)
Details
sql (portage-sqlite-init-db.sql,584 bytes, text/plain)
2004-05-29 00:23 UTC, Karol Wojtaszek (RETIRED)
Details
portage-sqlite/portage_db_sqlite.py (portage_db_sqlite.py,7.38 KB, text/plain)
2004-05-29 00:23 UTC, Karol Wojtaszek (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karol Wojtaszek (RETIRED) gentoo-dev 2004-05-29 00:21:38 UTC
Sqlite cache backend for portage:

Steps to install:
1. `emerge pysqlite`
2. copy modules to /etc/portage
3. copy portage_db_portage.py to /usr/lib/portage/pym
4. execute `init.sh`
5. `emerge regen`
Comment 1 Karol Wojtaszek (RETIRED) gentoo-dev 2004-05-29 00:22:27 UTC
Created attachment 32234 [details]
initialize database
Comment 2 Karol Wojtaszek (RETIRED) gentoo-dev 2004-05-29 00:22:54 UTC
Created attachment 32235 [details]
modules file
Comment 3 Karol Wojtaszek (RETIRED) gentoo-dev 2004-05-29 00:23:24 UTC
Created attachment 32236 [details]
sql
Comment 4 Karol Wojtaszek (RETIRED) gentoo-dev 2004-05-29 00:23:45 UTC
Created attachment 32237 [details]
portage-sqlite/portage_db_sqlite.py
Comment 5 Karol Wojtaszek (RETIRED) gentoo-dev 2004-05-31 15:09:52 UTC
Comment on attachment 32234 [details]
initialize database

>#!/bin/bash
>
>cat portage-sqlite-init-db.sql | sqlite /var/cache/edb/sqlite-cache
Comment 6 Karol Wojtaszek (RETIRED) gentoo-dev 2004-05-31 15:11:36 UTC
Comment on attachment 32234 [details]
initialize database

>#!/bin/bash
>
>cat portage-sqlite-init-db.sql | sqlite /var/cache/edb/sqlite-cache2
cat portage-sqlite-init-db.sql | sqlite /var/cache/edb/sqlite-cache
Comment 7 Karol Wojtaszek (RETIRED) gentoo-dev 2004-06-01 08:48:26 UTC
Init.sh should create /var/cache/edb/sqlite-cache not sqlite-cache2 :)
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2004-06-05 17:18:13 UTC
Requirements:
The module needs to be self-contained. It need to be able to create or
alter the tables itself without user intervention.
Comment 9 Jason Stubbs (RETIRED) gentoo-dev 2005-10-07 09:23:18 UTC
Caching backend design will be changing in such a way that a backend will be 
queriable rather than just a glorified file system. Will integrate new backends 
at that time.