Semi-Flyweights
Total Page:16
File Type:pdf, Size:1020Kb
FEATURES Kexi vs. Glom Kexi and Glom – lean database tools compared Monokini, sxc.hu Monokini, Semi-Flyweights Kexi and Glom aim to create databases with little overhead. for the default installation, it will store its data in an SQLite database and store We compare the power of these two tools. By Frank Hofmann the database as a file in the user’s home directory. This means that only the user can access the database. sers usually don’t have direct achieve initial results with very little In contrast to this, Glom stores its access to the functionality of a overhead. data in a PostgreSQL database, which it mature relational database be- Kexi is an spinoff of Calligra, the office either deposits in the user’s home direc- U cause managing the database suite by the KDE project, whereas Glom tory or provides centrally on the system. typically requires root privileges. But, if comes from the Gnome camp. Neither of The program only uses a subset of the you need something more than a simple these programs is an unknown quantity, Post gre SQL functions and can therefore table, Glom [1] and Kexi [2] are two pro- and both are regarded as pretty stable. only modify tables that it has created it- grams that give you the ability to create Kexi, for example, is available directly as self. Therefore, if several users run a database, form author queries, and a package from the Debian, Ubuntu, Red Glom, there is no danger of any conflict generate reports. Hat/ Fedora, and Mandriva/ Mageia re- Both applications are very similar in positories. terms of their field of use. In addition to Thus far, Glom has been available handling the preparatory work, they from the project’s website as a download create the database schemas and selec- for Ubuntu, Fedora, and Mandriva. Both tion masks. These two programs allow programs can be set up easily with the users without any database skills to respective package managers. If you are looking for a similar free project, the ob- AUTHOR vious candidates are Open / LibreOffice Base [3][4], H2 [5], and DBDesigner 4 Frank Hofmann studied computer science at the Technical University of [6]. On the commercial market, Glom Chemnitz, Germany. He currently works and Kexi’s competitors are Microsoft Ac- at Büro 2.0, Berlin, an office network of cess, FileMaker Pro for Mac OS X or the open source experts (http://www. iPad [7], and Oracle Forms [8]. buero20.org), where he provides services in the print and pre-press field (http:// Connectors Figure 1: When you launch Kexi, a wizard www.efho.de). Frank is a member of the Kexi offers connectors for MySQL, Post- pops up to help you create a new database Potsdam Linux User Group (upLUG). greSQL, and SQLite databases. If you opt or edit a previously saved project. 44 MAY 2012 ISSUE 138 LINUX-MAGAZINE.COM | LINUXPROMAGAZINE.COM 044-048_Glom.indd 44 3/20/12 5:08:59 PM FEATURES Kexi vs. Glom in terms of the PostgreSQL database used. Kexi Kexi adopts the look of other Calligra ap- plications and initially launches a wizard (Figure 1). In the dialog, you can use the tabs to select whether you want to create a new project or continue working on an existing one. When you start the program, you can choose an empty document, access data via a template, or import data from an existing database. To edit an existing project, you can take the project data ei- ther from a database server (MySQL, PostgreSQL, xBase) or from a local file. Figure 3: For each field in the table, Kexi offers a dialog with detailed properties. Figure 2 shows this selection with the database formats supported by Kexi in local files. Editor pane appears on the right-hand the SQL query in the Data tab and shows After this step, a window pops up with side, where you can use it to specify the you the results, which are in the typical a three-panel view. The menu and navi- individual fields (Figure 3). database style, with a slightly more at- gation bar are located at the top; this is The Data button takes you to view in tractive look. where you open and close projects, cre- which you can populate the table with Kexi’s feature scope includes functions ate database schemas in the form of ta- data. Depending on the number of fields for creating tables (fields and data), cre- bles and SQL queries, design dialog win- in the table, you will see a number of ed- ating SQL queries, and evaluating the re- dows and reports, and import and export itable input fields organized into rows sults by, say, creating input fields or re- data and database content. (Figure 4). ports. Unfortunately, the developers The project navigator on the left-hand When you are editing an SQL query seem reticent about documenting the lat- side provides a tree view with an over- (SQL button), Kexi shows you an import ter two functions, which makes their use view of all of the tables, SQL queries, di- field with multiple lines, where the key and integration less than intuitive. In alogs, reports, and scripts for the current words are highlighted to help you keep daily use, I noticed a couple of things to project. The central area in the window track of complex queries. If needed, you be aware of when working with Kexi. contains the details of the selected table, can press the Check Query button to see For example, if you retrospectively mod- SQL query, or dialog. The appearance of whether the query is valid. If so, you ify the schema of an existing table, the this part of the user interface depends on will see a check mark in the input field application will rewrite part of the the object on which you are currently and a note to the effect that The query is SQLite database. Unfortunately, the data working. correct. in a modified table will be lost. If you are defining the individual fields To check whether you have connected Kexi initially defines text fields with a in a table (under the Design button), this to the correct tables, you can go back to length of 200 characters; however, you part of the window will show you an ed- the Design button and toggle to visual can modify this length in the Properties itable row of input fields. The Property mode (Figure 5). Kexi lets you launch dialog. Another thing to watch out for is Figure 2: Kexi supports a number of database formats in local files. Figure 4: A form lets the user populate the selected table. LINUX-MAGAZINE.COM | LINUXPROMAGAZINE.COM ISSUE 138 MAY 2012 45 044-048_Glom.indd 45 3/20/12 5:09:05 PM FEATURES Kexi vs. Glom line with input fields and adds a new table (Figure 8). Delete removes the table that you selected in the list. The Open button takes you to the main Glom win- dow with the selected table, where you can enter the details (fields and field for- mats). The main Glom window offers a menu bar from which you can access most ac- tions directly. The buttons that are avail- able in the bar depend on the current ap- plication mode. In Developer mode, you can modify the database schema, whereas in Operator mode, you can only enter data – the menu items used to modify the schema are grayed out. To switch the mode in which you are Figure 5: If needed, you can click to check the connections between the tables. working, you can select the menu item Developer | Operator mode or Developer | that the program does not save all the that follow (Figure 6). It offers you the Developer mode. Below the menu, the content (tables, data, SQL queries) until choice of opening an existing document application shows you all the informa- you close a project, and you don’t have a or creating a new project. If you choose tion for the currently selected table. button to save data on the fly. the first option, you can choose to access To define the fields and field formats Kexi stores local project data in the the document on the network or load a for a table, first select the desired table in SQLite database format. This opens up local file. Tables | Table name. Then, go to the De- an option for running the SQLite3 com- To create a new project, you either cre- veloper | Fields menu to open a separate mand-line tool to investigate the Kexi ate an empty document or use one of the window where you can specify the field files and make any necessary correc- templates that come with the program. definitions (Figure 9). Pressing Delete re- tions. This feature is useful for trouble- The templates include some fairly com- moves the selected field from the list. shooting, and it allows you to peek at plex examples with tables, connections, the inner workings of the database and reports that might help you learn whenever you need to do so. what information to enter where in Overall, Kexi leaves you with a fairly Glom. After this step, you define the middling impression. From a production name and the file name for the project. point of view, it is suitable for small Additionally, you need to define the title projects and small volumes of data. and database type – either local or on an Some parts of Kexi seem to be highly un- external database server (Figure 7).