<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SQL | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Wed, 03 Jun 2020 19:10:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>SQL | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>C Amalgamation &#8211; for SQLite</title>
		<link>https://learncgames.com/c-amalgamation-for-sqlite/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=c-amalgamation-for-sqlite</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Wed, 10 Jun 2020 23:00:33 +0000</pubDate>
				<category><![CDATA[Techniques]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLite]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=782</guid>

					<description><![CDATA[<p>If I were to use a database in a game, it&#8217;s likely that it would be SQLite. It&#8217;s an open source SQL database that is 102 different C files and 32 others. Of those 102, 75% are C and the remainder header files. Unlike many other SQL databases (for example MySQL, SQL Server, PostgreSQL) it [&#8230;]</p>
The post <a href="https://learncgames.com/c-amalgamation-for-sqlite/">C Amalgamation – for SQLite</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:675,&quot;href&quot;:&quot;https:\/\/pixabay.com\/users\/CopyrightFreePictures-203\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=183454&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:676,&quot;href&quot;:&quot;https:\/\/pixabay.com\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=183454&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260205102120\/https:\/\/pixabay.com\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 17:33:51&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-02-06 17:33:51&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:677,&quot;href&quot;:&quot;https:\/\/www.sqlite.org&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260206173656\/https:\/\/www.sqlite.org\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-10 00:57:07&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-02-10 00:57:07&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:678,&quot;href&quot;:&quot;https:\/\/www.sqlite.org\/testing.html&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260128073435\/https:\/\/www.sqlite.org\/testing.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 17:34:06&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-02-06 17:34:06&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:679,&quot;href&quot;:&quot;https:\/\/www.sqlite.org\/amalgamation.html&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260120095230\/https:\/\/www.sqlite.org\/amalgamation.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 17:34:14&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-02-06 17:34:14&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_783" aria-describedby="caption-attachment-783" style="width: 300px" class="wp-caption alignleft"><img decoding="async" class="size-medium wp-image-783" src="https://learncgames.com/wp-content/uploads/2020/06/sqlite-183454_640-300x150.png" alt="SQLite Logo" width="300" height="150" srcset="https://learncgames.com/wp-content/uploads/2020/06/sqlite-183454_640-300x150.png 300w, https://learncgames.com/wp-content/uploads/2020/06/sqlite-183454_640.png 640w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-783" class="wp-caption-text">Image by <a href="https://pixabay.com/users/CopyrightFreePictures-203/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=183454">CopyrightFreePictures</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=183454">Pixabay</a></figcaption></figure>
<p>If I were to use a database in a game, it&#8217;s likely that it would be <a title="Link to SQLite" href="https://www.sqlite.org/" target="_blank" rel="nofollow noopener noreferrer">SQLite</a>. It&#8217;s an open source SQL database that is 102 different C files and 32 others. Of those 102, 75% are C and the remainder header files.</p>
<p>Unlike many other SQL databases (for example MySQL, SQL Server, PostgreSQL) it doesn&#8217;t need to run as a separate server. It compiles directly into your application, adding a whopping 400 KB! (<em>I&#8217;ve seen bigger picture files&#8230;</em>)  It&#8217;s fast and very well tested. For every line of code there are 644 lines of test code! Details of testing <a title="Link to SQLite testing" href="https://www.sqlite.org/testing.html" target="_blank" rel="nofollow noopener noreferrer">here.</a></p>
<p>You wouldn&#8217;t use SQLite in an arcade game as it would be a bit of an overkill just to hold a high-score table, but in something like a Rogue or Mud game, I could easily see it being used to store rooms, corridors, treasures etc. SQLite is also very easy to use.</p>
<p>The word amalgamation means that all the 102 source files have been combined (<a title="Link to SQLite amalgamation page" href="https://www.sqlite.org/amalgamation.html" target="_blank" rel="nofollow noopener noreferrer">amalgamated</a>) into one file called SQLite3.c. So building it is a single command.</p>
<p>SQLite is probably the worlds most popular database. It&#8217;s found in most operating systems and is used in every smartphone.</p>The post <a href="https://learncgames.com/c-amalgamation-for-sqlite/">C Amalgamation – for SQLite</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">782</post-id>	</item>
	</channel>
</rss>
