DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Data Engineering
  3. Data
  4. Thoughts on the CSV File Format

Thoughts on the CSV File Format

Flexible Database Manager Systems are important for effectively manipulating databases. Learn how I developed a flexible system based on the CSV file format.

Almir Bispo user avatar by
Almir Bispo
·
May. 13, 17 · Opinion
Like (4)
Save
Tweet
Share
4.76K Views

Join the DZone community and get the full member experience.

Join For Free

As we all know, CSV files are used to manipulate data in many applications and databases.

With the arrival of the NoSQL-type files that use the JSON format and others for data storage and functionalities, it's still difficult to perform tasks for parser development. It consumes a lot of RAM. Since the year 2007, before the resurgence of NoSQL, I've been developing a different database type other than the RDBMS.

New Paradigm

In the year 2007, I started to develop a type of Database Manager System that was more flexible than the relational ones based on the CSV file format. I've already had some success with this. To do this, it was necessary to create a dedicated data management language and a parser for syntax evaluation, tools integration, and testing. Today, we can enjoy this work through CSV Comp DB (and its tools).

Safety

The CSV Comp DB has concurrency control with a global lock for each instance and can be used by multiple users concurrently.

Access

It can interact with an application with the use of a CQL (Comma Query Language) script. Such a script must be embedded in the programming language in which its application has been developed.

Example in Pascal:

uses system; //to execute CSV Parser.All OS
procedure Transaction;
var CQL:Tstringlist;
    DB,Table,code,name,email:string;
begin 
//aplly data to variables
code := '00001';
name := 'Almir_Bispo'; //Undescores cares
email := 'gibroh_webmaster@hotmail.com';
//Database
DB := 'c:\MyDB\';
Table: = 'Products';
//create a driver
CQL := Tstringlist.create;
//add CQL Command block to driver (Add data to Table)
CQL.add('{' + DB+Table+';@adicionar;(' + code+';'+name+';'+email + ');0;0;0;query=0;destino=0}');
//save the drive to CSV Comp DB  INPUT
CQL.savetofile(application.location+'inpout_comp.exe');
//Execute CSV Comp DB (Desktop Version)
system.ExecuteProcess('open',pchar(application.location+'CSV_PARSER.exe'),[]);
CQL.free;
Shomessage('Data as Sent !');
end;

//use on button click
Transaction;

We can create complex applications, including transactions. To help developers, a technology called ILDE was created.

About CQL

The CQL Script language follows rigid access rules for data table arrays (CSV type) and has several functions, including full editing functions, searches by text scan, by indexes, by fields, changes, and the creation of native web pages.

Note: CQL can be used both in data management and in the generation of web pages of a website.

CQL Paradigm

CQL is a typed, interpreted script system where you use parameters according to the syntax request. Its execution is defined by sequential blocks:

For example:

//Add data to "Table" on "DB"
{
..DB/Table;
    @adicionar;
    (id-code ; id-name ; id-email );
    0;
    0;
    0;
    query=0;
    destino=0
}
//The html page is created from "Table" and aplly css on server
{
..DB/Table;
    @html;
    1;
    4;
    Blue;
    (http://localhost/bealtyfull.css);
    query=0;
    destino=0
}

About ILDE

ILDE is a term to describe (intermediate level embedded Driver), which has CQL function blocks embedded.

We have open-source distributions for several languages:

  • ILDE-Lua.

  • ILDE-Pascal (Delphi, Lazarus).

  • ILDE-Python.

  • ILDE-Java.

  • ILDE-Dart (new Google language).

Example ILDE-Lua:

function Transaction()
  local DB = "c:\\MyDB\\"
  local Table = "Products"
  local code = "00001"
  local Product = "Rice"
  local Price ="3,45" -- comma is decimal delimiter
  local fields = code..Products..Price  --concat all to fields
  CSV_COMP_DB_execute(  add_data(DB ,Table ,fields)  )--ILDE Lua is similar to java
end
--call
Transaction()

Where to Apply the CSV Comp DB

For the uses that I have already developed, it was possible to create several applications:

  • Sites.

  • E-commerce.

  • Databases for web or desktop.

  • Supervisors for sensors and microcontrollers.

CSV Relational database application Data management Open source Data (computing) Data storage

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Integrating AWS Secrets Manager With Spring Boot
  • Securing Cloud-Native Applications: Tips and Tricks for Secure Modernization
  • Beyond Coding: The 5 Must-Have Skills to Have If You Want to Become a Senior Programmer
  • How Agile Architecture Spikes Are Used in Shift-Left BDD

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: