Editing Easy DB Help File

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 8: Line 8:
 
* Saves data to a sql lite database that you can use any way you wish.
 
* Saves data to a sql lite database that you can use any way you wish.
 
* Highly configurable.
 
* Highly configurable.
* Some of the terminology used here is covered in '''[[Basic Database Terminology]]'''
 
  
 
= Download and Install =  
 
= Download and Install =  
Line 67: Line 66:
  
 
=  How to Use the Parameter File =  
 
=  How to Use the Parameter File =  
* For general information see: [[Configuration Files For Python]].
+
See: [[Configuration Files For Python]]
* For detailed information read the file parameters.py.
 
 
 
 
 
 
You need a text editor suitable for .py files to manage the parameter file ( parameters.py )
 
You need a text editor suitable for .py files to manage the parameter file ( parameters.py )
This includes many text editors.  I particularity like:
+
This includes most text editors.  I particularity like:
  
 
*notepad++
 
*notepad++
Line 133: Line 129:
 
      
 
      
 
Save the file with a new name so it will not get overwritten the next time <Make Generic Input> is run.
 
Save the file with a new name so it will not get overwritten the next time <Make Generic Input> is run.
 +
  
 
Now we will edit the file for your new set of data.
 
Now we will edit the file for your new set of data.
Line 152: Line 149:
  
  
 +
     
 +
 
Now for the input file <Browse...> to the file you just made.
 
Now for the input file <Browse...> to the file you just made.
 
         you can use the <Edit File> button to look at the file again if you wish.
 
         you can use the <Edit File> button to look at the file again if you wish.
Line 168: Line 167:
 
         Your text editor should open with the output.
 
         Your text editor should open with the output.
  
== Report/Output Data ==
+
= Output =  
 
 
= In Depth =
 
This revisits some material already covered but in more depth.  Perhaps in a, or many, separate pages but  here for now.
 
 
 
== Table Creation ==
 
 
 
=== Table and Column Name Rules ===
 
 
 
Much the same rules apply to both table and column names:
 
 
 
* Use lower case.
 
* No spaces in names, do not start with a number, generally avoid non alphebetic characterss ( except _ )
 
 
* Names do not contain spaces tabs or weird characters
 
 
* the "_" character may be used in place of a space to make a name that would otherwise be two_words.
 
* Certain words are used by the sql language and are reserved for that, you cannot use them for table or column
 
names, some will be caught by the system ( more will be added as we trip across them ).  They include: like, where, select delete.....
 
 
 
==== if you do not follow the guidelines then ====
 
           
 
* the system may change your name to meet the guidelines ( excess spaces removed, spaces changed to underscore, case shifted to lower case.... ,
 
* you may get a helpful error message
 
*you may get odd unexpected results perhaps with an unhelpful error message or none at all.
 
 
 
    it takes a common form for lines in the systems files. These are of the
 
 
 
 
 
 
 
 
 
 
 
== Output/Reporting ==
 
Generally there are three aspects to output:
 
 
 
*What table and what columns from that table are used.
 
*What data is selected.
 
*What is the order of the data.
 
*What format is used for the data.
 
 
 
These are covered below.
 
 
 
=== Table and Columns ===
 
 
 
=== Selection Criteria ===
 
  
=== Sort Order ===
+
== Output Formats ==
 +
When running a query ( you could call it a report ) there are a variety of formats to choose between ( not including which columns.... which is part of Output Content )
 +
This list may expand as I think of new options but as of now:
  
 
+
=== Table ===
 
 
 
 
 
 
 
 
=== Output Formats ===
 
When running a query ( you could call it a report ) there are a variety of formats to choose between ( not including which columns.... which is part of Output Content ).  When you run a query the system tries to open the resulting file ( output is always to file, if you need printed output print the file ) in the approiapate viewer, often your text editor.
 
 
 
This list of formats may expand as I think of new options but as of now:
 
 
 
===== Table =====
 
  
 
Table is an ASCII sort of spreadsheet, each record is on a single line, | characters separate the columns.  Here is an example for the dogs scenario:
 
Table is an ASCII sort of spreadsheet, each record is on a single line, | characters separate the columns.  Here is an example for the dogs scenario:
Line 247: Line 194:
 
easy to import into most spreadsheets.
 
easy to import into most spreadsheets.
  
==== Input ====
+
=== Input ===
 
Input format makes the output look just like a cleaned up version of the input that would be necessary to input the data.  One major difference is that the purpose is listed as export.  This stops you from using it as input by mistake, you have to change the purpose to insert.
 
Input format makes the output look just like a cleaned up version of the input that would be necessary to input the data.  One major difference is that the purpose is listed as export.  This stops you from using it as input by mistake, you have to change the purpose to insert.
  
Line 278: Line 225:
 
</pre>
 
</pre>
  
==== PyLog ====
+
=== PyLog ===
Here all the output is sent to the Python log file.  The data will be mixed in with other logged information.
+
Here all the output is sent to the Python log file.
  
  
Line 306: Line 253:
 
</pre>
 
</pre>
  
==== CSV ====
+
=== CSV ===
 
<pre>
 
<pre>
 
ROWID breed dog_name typical_weight
 
ROWID breed dog_name typical_weight
Line 316: Line 263:
 
</pre>
 
</pre>
  
==== SQL ====
+
=== SQL ===
 
 
==== HTML ====
 
  
An HTML version of a table, much nicer to view than the ASCII version.
+
=== HTML ===
  
 
== Output Content ==
 
== Output Content ==

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)