{"id":1111,"date":"2012-11-20T20:37:57","date_gmt":"2012-11-20T20:37:57","guid":{"rendered":"https:\/\/clarionsharp.com\/blog\/?p=1111"},"modified":"2013-07-09T21:54:28","modified_gmt":"2013-07-09T21:54:28","slug":"sqlite-and-the-new-abc-sqlexecutor","status":"publish","type":"post","link":"https:\/\/clarionsharp.com\/blog\/sqlite-and-the-new-abc-sqlexecutor\/","title":{"rendered":"SQLite and the new ABC SQLexecutor"},"content":{"rendered":"<p>Clarion 9 introduces a new driver for working with SQLite databases.\u00a0 SQLite is one of the most widely deployed databases in use today. SQLite databases are widely used on both iOS and Android tablets and cell phones.\u00a0 SQLite databases are useful in any situations where simplicity of administration and easy maintenance are more important than scalability.<\/p>\n<p>The driver introduces a new prop; PROP:CreateDB. PROP:CreateDB is a command property that tells the SQL driver to create the SQLite physical database file that is specified in the OWNER attribute of the file. If the database file already exists, this command does nothing.\u00a0 The existing database file will not be destroyed.<\/p>\n<p>The CREATE statement converts Clarion data types to SQLite Data types using the following table:<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"181\">Clarion Data Type<\/td>\n<td valign=\"top\" width=\"174\">SQLite Data Type<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"181\">STRING<\/td>\n<td valign=\"top\" width=\"174\">CHAR<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"181\">CSTRING<\/td>\n<td valign=\"top\" width=\"174\">VARCHAR<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"181\">STRING(8);GROUP OVER(STRING);DATE;TIME<\/td>\n<td valign=\"top\" width=\"174\">DATETIME<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"181\">DATE<\/td>\n<td valign=\"top\" width=\"174\">DATE<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"181\">PDECIMAL<\/td>\n<td valign=\"top\" width=\"174\">NUMBER<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"181\">DECIMAL<\/td>\n<td valign=\"top\" width=\"174\">NUMBER<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"181\">BYTE<\/td>\n<td valign=\"top\" width=\"174\">TINYINT<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"181\">SHORT<\/td>\n<td valign=\"top\" width=\"174\">SMALLINT<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"181\">LONG<\/td>\n<td valign=\"top\" width=\"174\">INTEGER<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"181\">SREAL<\/td>\n<td valign=\"top\" width=\"174\">FLOAT<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"181\">REAL<\/td>\n<td valign=\"top\" width=\"174\">REAL<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"181\">BLOB<\/td>\n<td valign=\"top\" width=\"174\">CLOB<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"181\">BLOB,BINARY<\/td>\n<td valign=\"top\" width=\"174\">BLOB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>However Clarion 9 introduces new ABC support so that you can easily deploy and execute SQL scripts. For example a create script like below;<br \/>\nCREATE TABLE Courses(<br \/>\nNumber INTEGER,<br \/>\nDescription CHAR(40),<br \/>\nCompleteDescription CLOB,<br \/>\nCONSTRAINT KeyNumber PRIMARY KEY (Number));<br \/>\nCREATE INDEX KeyDescription ON Courses(Description);<\/p>\n<p>The new class executes SQL code as a series of commands separated by an end of statement marker which you specify.\u00a0 Any errors encountered executing the script are reported using the passed error handler. In short, you provide an external file that contains your SQL script and its parsed and executed.\u00a0 The SQL code isn&#8217;t limited to just Create and Alter database scenarios, you can execute any valid SQL code. And of course the new ABC SQL script support is applicable across any Driver and SQL backend.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Clarion 9 introduces a new driver for working with SQLite databases.\u00a0 SQLite is one of the most widely deployed databases in use today. SQLite databases are widely used on both iOS and Android tablets and cell phones.\u00a0 SQLite databases are useful in any situations where simplicity of administration and easy maintenance are more important than &hellip; <a href=\"https:\/\/clarionsharp.com\/blog\/sqlite-and-the-new-abc-sqlexecutor\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">SQLite and the new ABC SQLexecutor<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,5],"tags":[],"class_list":["post-1111","post","type-post","status-publish","format-standard","hentry","category-clarion9","category-clarionnews"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SQLite and the new ABC SQLexecutor - Clarion<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/clarionsharp.com\/blog\/sqlite-and-the-new-abc-sqlexecutor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQLite and the new ABC SQLexecutor - Clarion\" \/>\n<meta property=\"og:description\" content=\"Clarion 9 introduces a new driver for working with SQLite databases.\u00a0 SQLite is one of the most widely deployed databases in use today. SQLite databases are widely used on both iOS and Android tablets and cell phones.\u00a0 SQLite databases are useful in any situations where simplicity of administration and easy maintenance are more important than &hellip; Continue reading SQLite and the new ABC SQLexecutor &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/clarionsharp.com\/blog\/sqlite-and-the-new-abc-sqlexecutor\/\" \/>\n<meta property=\"og:site_name\" content=\"Clarion\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/softvelocity\/\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-20T20:37:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-07-09T21:54:28+00:00\" \/>\n<meta name=\"author\" content=\"rzaunere\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rzaunere\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/sqlite-and-the-new-abc-sqlexecutor\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/sqlite-and-the-new-abc-sqlexecutor\\\/\"},\"author\":{\"name\":\"rzaunere\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#\\\/schema\\\/person\\\/b90e860529aea05ad064cf2687697ce3\"},\"headline\":\"SQLite and the new ABC SQLexecutor\",\"datePublished\":\"2012-11-20T20:37:57+00:00\",\"dateModified\":\"2013-07-09T21:54:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/sqlite-and-the-new-abc-sqlexecutor\\\/\"},\"wordCount\":298,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#organization\"},\"articleSection\":[\"Clarion 9\",\"Clarion News\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/sqlite-and-the-new-abc-sqlexecutor\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/sqlite-and-the-new-abc-sqlexecutor\\\/\",\"url\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/sqlite-and-the-new-abc-sqlexecutor\\\/\",\"name\":\"SQLite and the new ABC SQLexecutor - Clarion\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#website\"},\"datePublished\":\"2012-11-20T20:37:57+00:00\",\"dateModified\":\"2013-07-09T21:54:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/sqlite-and-the-new-abc-sqlexecutor\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/sqlite-and-the-new-abc-sqlexecutor\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/sqlite-and-the-new-abc-sqlexecutor\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQLite and the new ABC SQLexecutor\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/\",\"name\":\"Clarion\",\"description\":\"Deliver your software on time, every time\",\"publisher\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#organization\",\"name\":\"SoftVelocity\",\"url\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/svlogonew57.png\",\"contentUrl\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/svlogonew57.png\",\"width\":221,\"height\":57,\"caption\":\"SoftVelocity\"},\"image\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/softvelocity\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/SoftVelocity\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#\\\/schema\\\/person\\\/b90e860529aea05ad064cf2687697ce3\",\"name\":\"rzaunere\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/91d95e38759c411d27f646b60da7f4769ce91e87b484669af240e51c729b1e7c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/91d95e38759c411d27f646b60da7f4769ce91e87b484669af240e51c729b1e7c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/91d95e38759c411d27f646b60da7f4769ce91e87b484669af240e51c729b1e7c?s=96&d=mm&r=g\",\"caption\":\"rzaunere\"},\"url\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/author\\\/rzaunere\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQLite and the new ABC SQLexecutor - Clarion","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/clarionsharp.com\/blog\/sqlite-and-the-new-abc-sqlexecutor\/","og_locale":"en_US","og_type":"article","og_title":"SQLite and the new ABC SQLexecutor - Clarion","og_description":"Clarion 9 introduces a new driver for working with SQLite databases.\u00a0 SQLite is one of the most widely deployed databases in use today. SQLite databases are widely used on both iOS and Android tablets and cell phones.\u00a0 SQLite databases are useful in any situations where simplicity of administration and easy maintenance are more important than &hellip; Continue reading SQLite and the new ABC SQLexecutor &rarr;","og_url":"https:\/\/clarionsharp.com\/blog\/sqlite-and-the-new-abc-sqlexecutor\/","og_site_name":"Clarion","article_publisher":"https:\/\/www.facebook.com\/softvelocity\/","article_published_time":"2012-11-20T20:37:57+00:00","article_modified_time":"2013-07-09T21:54:28+00:00","author":"rzaunere","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rzaunere","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/clarionsharp.com\/blog\/sqlite-and-the-new-abc-sqlexecutor\/#article","isPartOf":{"@id":"https:\/\/clarionsharp.com\/blog\/sqlite-and-the-new-abc-sqlexecutor\/"},"author":{"name":"rzaunere","@id":"https:\/\/clarionsharp.com\/blog\/#\/schema\/person\/b90e860529aea05ad064cf2687697ce3"},"headline":"SQLite and the new ABC SQLexecutor","datePublished":"2012-11-20T20:37:57+00:00","dateModified":"2013-07-09T21:54:28+00:00","mainEntityOfPage":{"@id":"https:\/\/clarionsharp.com\/blog\/sqlite-and-the-new-abc-sqlexecutor\/"},"wordCount":298,"commentCount":0,"publisher":{"@id":"https:\/\/clarionsharp.com\/blog\/#organization"},"articleSection":["Clarion 9","Clarion News"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/clarionsharp.com\/blog\/sqlite-and-the-new-abc-sqlexecutor\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/clarionsharp.com\/blog\/sqlite-and-the-new-abc-sqlexecutor\/","url":"https:\/\/clarionsharp.com\/blog\/sqlite-and-the-new-abc-sqlexecutor\/","name":"SQLite and the new ABC SQLexecutor - Clarion","isPartOf":{"@id":"https:\/\/clarionsharp.com\/blog\/#website"},"datePublished":"2012-11-20T20:37:57+00:00","dateModified":"2013-07-09T21:54:28+00:00","breadcrumb":{"@id":"https:\/\/clarionsharp.com\/blog\/sqlite-and-the-new-abc-sqlexecutor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/clarionsharp.com\/blog\/sqlite-and-the-new-abc-sqlexecutor\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/clarionsharp.com\/blog\/sqlite-and-the-new-abc-sqlexecutor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/clarionsharp.com\/blog\/"},{"@type":"ListItem","position":2,"name":"SQLite and the new ABC SQLexecutor"}]},{"@type":"WebSite","@id":"https:\/\/clarionsharp.com\/blog\/#website","url":"https:\/\/clarionsharp.com\/blog\/","name":"Clarion","description":"Deliver your software on time, every time","publisher":{"@id":"https:\/\/clarionsharp.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/clarionsharp.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/clarionsharp.com\/blog\/#organization","name":"SoftVelocity","url":"https:\/\/clarionsharp.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/clarionsharp.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2019\/03\/svlogonew57.png","contentUrl":"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2019\/03\/svlogonew57.png","width":221,"height":57,"caption":"SoftVelocity"},"image":{"@id":"https:\/\/clarionsharp.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/softvelocity\/","https:\/\/www.youtube.com\/user\/SoftVelocity"]},{"@type":"Person","@id":"https:\/\/clarionsharp.com\/blog\/#\/schema\/person\/b90e860529aea05ad064cf2687697ce3","name":"rzaunere","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/91d95e38759c411d27f646b60da7f4769ce91e87b484669af240e51c729b1e7c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/91d95e38759c411d27f646b60da7f4769ce91e87b484669af240e51c729b1e7c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/91d95e38759c411d27f646b60da7f4769ce91e87b484669af240e51c729b1e7c?s=96&d=mm&r=g","caption":"rzaunere"},"url":"https:\/\/clarionsharp.com\/blog\/author\/rzaunere\/"}]}},"_links":{"self":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts\/1111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/comments?post=1111"}],"version-history":[{"count":10,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts\/1111\/revisions"}],"predecessor-version":[{"id":1186,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts\/1111\/revisions\/1186"}],"wp:attachment":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/media?parent=1111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/categories?post=1111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/tags?post=1111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}