SQL Cardfile Help
Introduction
SQL Cardfile is a simple card file database using SQLite© as the backend.
It is very similar in layout to the sort of cards that would be found in an
old-fashioned library card catalogue. It is designed to be simple to use but
versatile enough to fit a range of situations. All that you need to do is define
the fields you want on the card (and their type) and you are ready to go.
If you need to create a complex database, need different layouts or need functions
then this is not going to be a suitable solution for you. I would recommend that
you look at other solutions such as those available in LibreOffice Base,
Microsoft© Access or FileMaker Pro©.
Quick Guide
Creating A New Database
Creating a new database is very straight forward but it is a good idea to plan
it first. You should write down the names of the fields you want to create and
the data types you want them to have (TEXT, INTEGER or REAL) as well as
deciding the order you want the fields to appear in. Once you have planned your
database follow the steps below to create it.
- Choose "New DB..." from the "Database" menu.
- Choose the location and filename for the database you want to create (The
standard file extensions for SQL Cardfile databases are ".sqlcard"
and ".sqlcardfile" but they need to be added manually) and click
"Save".
- Enter the name you wish to give the field in the text box and select the
field type from the pull-down list, then click the "Add Field"
button to insert the new field into the database.
- If you make a mistake you can delete an entry in the field list by selecting
it and clicking on the "Delete Field" button. If you made a spelling
mistake in the field name then double-click on the name and correct it. It is
not possible to change the type of a field once it appears in the list.
- Once you have finished adding all of the fields you want in your database,
click on the "Finished" button to create the database. If you have
not created any fields then the database will not be created.
- The database will be opened automatically once successfully created.
- Instructions on using your new database can be found in the next section.
Using A Database
To open the database you want to use go to "Open DB..." in the
"Database" menu and select your database, then click "Open".
If the database is read-only then the display will show that. If you edit a
card the changes will not be saved. Also, you will not be able to add, delete
or copy cards.
To close the open database choose "Close DB" from the
"Database" menu. Any changes to the database will be saved before
the database is closed.
To quit "SQL Cardfile" choose "Exit" from the
"Database" menu. Any changes to the database will be saved before
the program quits.
Navigation
The available navigation options are listed
below:
- "First" button: Will take you to the first card
in the database.
- "Prev" button: Will take you to the previous
card in the list.
- "Pick" button: Will bring up a dialog box
allowing you to select the card you want to view.
- "Next" button: Will take you to the next card
in the list.
- "Last" button: Will take you to the last card
in the database.
Card Actions
Below is a list of the available card actions:
- "Add" button: Will display a dialog allowing
you to enter values for the new card. When you click "Save" in the
dialog those values will be enterred in the new card otherwise the default
blank values will be used. The new card is put at the end of the card list.
- "Delete" button: Will delete the current card
if you choose "Yes" in the prompt dialog otherwise nothing will be
done. Once the card is deleted the next card in the list will be displayed.
- "Copy" button: Will create a copy of the current
card and add it to the end of the list. The new card will then be displayed.
- Editing: Edit a value on a card by double-clicking on the
value and then change it. The change will be saved automatically when you are
finished.
Exporting Data From A Database
You can export data from a SQL Cardfile database to a tab-separated text file
using the following procedure:
- Open the database containing the data you want to export.
- Choose "Export..." from the "Data" menu.
- Choose the location and filename you want to export to and click "Save".
- A message will pop-up when the export is complete.
Sorting Data In A Database
You can sort the data in a SQL Cardfile database using the following procedure:
- Open the database containing the data you want to export.
- Choose "Sort..." from the "Data" menu.
- Choose the sort criteria you want to use and click "Sort".
Notes
- To unsort data choose "Unsort..." from the "Data" menu.
- To view the current sort criteria being used choose "View Sort..."
from the "Data" menu.
- If you export the data from a database while a sort is in place then the exported
data will also be sorted.
- Sorting of TEXT fields is done on a character by character basis.
This means that if you have numbers in a text field the number 12, for example, will
be sorted before the number 9 because the first charcter of 12 is 1.
Keyboard Shortcuts
The following keyboard shortcuts are defined:
(Macintosh© users see note 1)
- New Database: Control & N (See note 2)
- Open Database; Control & O (See note 2)
- Close Database: Control & W
- Exit Program: Control & X
- Add Card: Control & Plus (+)
- Delete Card: Control & Minus (-)
- Copy Card: Control & D
- Go to first card: Control & Home
- Go to previous card: Control & Left Arrow
- Go to next card: Control & Right Arrow
- Go to last card: Control & End
Notes:
- On a Macintosh© computer the "Control" key should be replaced
by the "Command" key.
- Only one (1) database can be open at a time so, once a database is open, the
"New Database" and "Open Database" commands are disabled.
Missing Features
SQL Cardfile is not a fully featured database system and lacks some things that
you would normally expect to find. Listed below are some of the missing features.
- Search.
- There is no search facility at the moment but I do expect to add it in a
future update.
- Layouts.
- There is no way to customize layouts at the moment but this may be added
at a later stage.
- Import.
- There is no way to import data at the moment but you can export.
- Missing Data Types.
- The only data types currently supported are TEXT, INTEGER and REAL. I
might add additional types in a later version.
Version History
- Version 1.1
- Updated Release. Tested on Mozilla Firefox versions 24 through 37 and
Mozilla SeaMonkey versions 2.20 through 2.32.
- Added the ability to sort the database including when exporting data.
- Version 1.0
- Initial release. Tested on Mozilla Firefox versions 24 through 28.
Acknowledgements
The icon used for this extension is derived from an icon in the "Tango Icon
Theme" which was released into the public domain by its copyright holders.