Title:
SiSU - SiSU information Structuring Universe - Search [0.58]
Rights:
Copyright (C) Ralph Amissah 2007, part of SiSU documentation, License GPL 3
Subject:
ebook, epublishing, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, search
Date available:
2002-08-28
Date modified:
2007-09-16
1
SiSU - SiSU information Structuring Universe - Search [0.58], Ralph Amissah
2
SiSU Search
3
?
SiSU Sqlite
4
sqlite
1. Sqlite
5
1.1
1.1 Name
6
SiSU - Structured information, Serialized Units - a document publishing system.
7
1.2
1.2 Description
8
Information related to using sqlite with sisu (and related to the sisu_sqlite dependency package, which is a dummy package to install dependencies needed for SiSU to populate an sqlite database, this being part of SiSU - man sisu).
9
1.3
1.3 Synopsis
10
sisu -d [instruction] [filename/wildcard if required]
11
sisu -d --(sqlite|pg) --[instruction] [filename/wildcard if required]
12
1.4
1.4 Commands
13
Mappings to two databases are provided by default, postgresql and sqlite, the same commands are used within sisu to construct and populate databases however -d (lowercase) denotes sqlite and -D (uppercase) denotes postgresql, alternatively --sqlite or --pgsql may be used
14
-d or --sqlite may be used interchangeably.
15
1.4.1
1.4.1 create and destroy database
16
--sqlite --createall initial step, creates required relations (tables, indexes) in existing (sqlite) database (a database should be created manually and given the same name as working directory, as requested) (rb.dbi)
17
sisu -d --createdb creates database where no database existed before
18
sisu -d --create creates database tables where no database tables existed before
19
sisu -d --dropall destroys database (including all its content)! kills data and drops tables, indexes and database associated with a given directory (and directories of the same name).
20
sisu -d --recreate destroys existing database and builds a new empty database structure
21
1.4.2
1.4.2 import and remove documents
22
sisu -d --import -v [filename/wildcard] populates database with the contents of the file. Imports documents(s) specified to an sqlite database (at an object level).
23
sisu -d --update -v [filename/wildcard] updates file contents in database
24
sisu -d --remove -v [filename/wildcard] removes specified document from sqlite database.