cqrlog/help/h27.html
OH1KH 9fedad69d7 Documentation fixes
- changed version number to 2.5.0 in main help page.
	- changed OH7AN to OK2CQR in all help pages as understood from your web pages "OK2CQR is back" that you returned to your old callsign.
	- went through https://github.com/ok2cqr/cqrlog/commits/master and added some lines to CHANGELOG. I'm still sure that not all things are in the list.

	Perhaps it would be good idea to add a changelog line as the first line of pull request text. Then it would be easier to collect them afterwards.

	This is not complete list. I would be happy to see more additions or fixes to current CHANGELOG also from others!
2020-12-14 11:29:06 +02:00

170 lines
6.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>CQRLOG - SQL console</title>
</head>
<body>
<table border="0" cellpadding="5" cellspacing="2" width="100%">
<tbody>
<tr>
<td valign="top"><img src="img/exc.png"></td>
<td bgcolor=ffffcc valign="top" align="justify"><strong>
<font color="red">WARNING!</font></strong>
Backup your data often! BACKUP your log directory at the end of EVERY session!
All that you need to backup and store in a safe place is the log database directory
located in the ~/.config/cqrlog/database folder, or you can enable the autobackup function
in Preferences. This autobackup function creates an ADIF file with a backup of your log.
</td>
</tr>
</tbody>
</table>
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td width="33%" align="center">[<a href="index.html" target="_top">Menu</a>]</td>
</tr>
</tbody>
</table>
<br>
<div style="text-align: left;"><strong>CQRLOG for LINUX by OK2CQR &amp; OK1RR</strong></div>
<p align=center><img src=img/line.png></p>
<h2><strong>SQL Console</strong></h2>
<div style="text-align: justify;">To enter the SQL Console, go to QSO list (Ctrl-O)
and in the upper menu bar go to <em>Filter -> SQL console.</em>
<div align="left">
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td width="50%" align="left"><img src=img/h114.png border="0"></td>
</tr>
<tr>
<td width="50%" align="left"><img src=img/h115.png border="0"></td>
</tr>
</tbody>
</table>
<br>
The icons in the upper menu allow the following actions:<br><br>
<strong>1st icon</strong>
&nbsp; &nbsp;&nbsp;Execute SQL statement<br>
<strong>2nd icon</strong>
&nbsp;&nbsp;&nbsp;Previous SQL command<br>
<strong>3rd icon</strong>
&nbsp;&nbsp;&nbsp;Next SQL command<br>
<strong>4th icon</strong>
&nbsp;&nbsp;&nbsp;Load SQL command from a file<br>
<strong>5th icon</strong>
&nbsp;&nbsp;&nbsp;Save SQL command to a file<br>
<strong>6th icon</strong>
&nbsp;&nbsp;&nbsp;Export data to a csv or html file<br>
<strong>7th icon</strong>
&nbsp;&nbsp;&nbsp;Get SQL command currently used in the main database. For example,
if a filter is set, clicking this icon allows you to edit the SQL command created
by the filter.<br><br>
<h3><strong>Tables in cqrlogXXX:</strong></h3><br>
where XXX is numer of the log e.g. cqrlog001 for the first log.<br><br>
<strong>cqrlog_main</strong><br>
&nbsp;&nbsp;&nbsp;the main table with all QSO records<br><br>
<strong>notes</strong><br>
&nbsp;&nbsp;&nbsp;table containing the call sign related notes<br><br>
<strong>profiles</strong><br>
&nbsp;&nbsp;&nbsp;list of QTH profiles<br><br>
<strong>db_version</strong><br>
&nbsp;&nbsp;&nbsp;database version<br><br>
<strong>award1 ... award5</strong><br>
&nbsp;&nbsp;&nbsp;external tables used for memberships<br><br>
<strong>zipcode1 ... zipcode3</strong><br>
&nbsp;&nbsp;&nbsp;external tables used for zip codes<br><br>
<strong>long_note</strong><br>
&nbsp;&nbsp;&nbsp;a long note valid for the whole log<br><br>
<strong>cqrlog_config</strong><br>
&nbsp;&nbsp;&nbsp;configuration file<br><br>
<strong>dxcc_id</strong><br>
&nbsp;&nbsp;&nbsp;a list of DXCC countries<br><br>
<strong>log_changes</strong><br>
&nbsp;&nbsp;&nbsp;a list of changes made to cqrlog_main database filled by
triggers (only when log upload function is enabled)<br><br>
<strong>upload_status</strong><br>
&nbsp;&nbsp;&nbsp;last IDs of uploaded QSO to online logs<br><br>
<strong>call_alert</strong>
&nbsp;&nbsp;&nbsp;list of callsigns with mode and band for dxcluster alert function<br><br>
<strong>freqmem</strong>
&nbsp;&nbsp;&nbsp;list of memories for fast frequency switching<br><br>
<strong>view_cqrlog_main_by_callsign</strong><br>
&nbsp;&nbsp;&nbsp;a view to show QSO sorted by callsign<br><br>
<strong>view_cqrlog_main_by_qsodate</strong><br>
&nbsp;&nbsp;&nbsp;a view to show QSO sorted by qsodate<br><br>
<h3><strong>Tables in cqrlog_common:</strong></h3><br>
The common database used by all logs. <br>
<strong>bands</strong><br>
&nbsp;&nbsp;&nbsp;band limits (lower/upper end)<br><br>
<strong>db_version</strong><br>
&nbsp;&nbsp;&nbsp;database version<br><br>
<strong>bandcn</strong><br>
&nbsp;&nbsp;&nbsp;info if the country is worked and confirmed by a paper QSL or via LoTW<br><br>
<strong>dxcc_ref</strong><br>
&nbsp;&nbsp;&nbsp;the current DXCC reference table<br><br>
<strong>dxclusters</strong><br>
&nbsp;&nbsp;&nbsp;list of DX cluster nodes<br><br>
<strong>iota_list</strong><br>
&nbsp;&nbsp;&nbsp;IOTA reference list<br><br>
<strong>log_list</strong><br>
&nbsp;&nbsp;&nbsp;list of logs created in cqrlog<br><br>
<strong>qslmngr</strong><br>
&nbsp;&nbsp;&nbsp;list of QSL managers<br><br>
</div>
<strong>Example:</strong><br><br>
<div align="justify">Select from the database date, call sign, frequency and mode,
where the QSO date is from timespan between Jan. 1. 2009 and Dec. 31. 2009 and the WAZ
zone is 15.<br><br>
<strong>SQL command:</strong><br>
<pre>
SELECT qsodate, callsign, freq, mode FROM view_cqrlog_main_by_qsodate WHERE
qsodate >= '2009-01-01' and qsodate <= '2009-31-12' and waz = 15
</pre>
<br>
The databases structures are listed <a href=sql_console.html><strong>here</strong>.</a></div>
</div>
<p align=center><img src=img/line.png></p><br>
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td width="33%" align="center">[<a href="index.html" target="_top">Menu</a>]</td>
</tr>
</tbody>
</table>
<br>
</body>
</html>