SQL Cardfile Help


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.

  1. Choose "New DB..." from the "Database" menu.
  2. 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".
  3. 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.
  4. 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.
  5. 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.
  6. The database will be opened automatically once successfully created.
  7. 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.

The available navigation options are listed below:

Card Actions
Below is a list of the available card actions:

Exporting Data From A Database

You can export data from a SQL Cardfile database to a tab-separated text file using the following procedure:

  1. Open the database containing the data you want to export.
  2. Choose "Export..." from the "Data" menu.
  3. Choose the location and filename you want to export to and click "Save".
  4. 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:

  1. Open the database containing the data you want to export.
  2. Choose "Sort..." from the "Data" menu.
  3. Choose the sort criteria you want to use and click "Sort".


  1. To unsort data choose "Unsort..." from the "Data" menu.
  2. To view the current sort criteria being used choose "View Sort..." from the "Data" menu.
  3. If you export the data from a database while a sort is in place then the exported data will also be sorted.
  4. 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)


  1. On a Macintosh© computer the "Control" key should be replaced by the "Command" key.
  2. 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.

There is no search facility at the moment but I do expect to add it in a future update.
There is no way to customize layouts at the moment but this may be added at a later stage.
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.


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.