TextDB

Implements main function and core logic of TextDB.  TextDB is used to read from simple CSV files and patch the content into C source code files.

Textfile syntax

The values must be enclosed in quotes.  Use either “ or ‘.  It is possible to list more than one value for one column.  They are concatenated and this is useful if a “ or ‘ is in the value.

# TEXT.DB (1.0)
# Comment
"column1-name", "column2-name", ...
# The following line shows how to add a "
# to the value in the second column
"row1-col1-value", "row1-col2-value" '"', ...
"row2-col1-value", "row2-col2-value", ...
...
Summary
TextDBImplements main function and core logic of TextDB.
CopyrightThis program is free software.
Files
C-kern/main/tools/textdb.cMain implementation file of TextDB.

Copyright

This program is free software.  You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

Author

© 2011 Jörg Seebohn

Files

C-kern/main/tools/textdb.c

Main implementation file of TextDB.

Implements main function and core logic of TextDB.
Close