<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_add_database_id</id>
	<title>Truxton add database id - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_add_database_id"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_add_database_id&amp;action=history"/>
	<updated>2026-09-09T21:44:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_add_database_id&amp;diff=5074&amp;oldid=prev</id>
		<title>Sam: /* Sample */</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_add_database_id&amp;diff=5074&amp;oldid=prev"/>
		<updated>2021-06-28T09:41:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Sample&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 09:41, 28 June 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l28&quot; &gt;Line 28:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Sample=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Sample=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;3-8&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;3-8&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;void &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;truxton_add_database_id&lt;/del&gt;( uint64_t truxton_handle )&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;void &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;add_my_database_id&lt;/ins&gt;( uint64_t truxton_handle )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    truxton_add_database_id( truxton, Type_010_Help_Viewer, &amp;quot;ContentsTable.NamespaceId&amp;quot; );&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    truxton_add_database_id( truxton, Type_010_Help_Viewer, &amp;quot;ContentsTable.NamespaceId&amp;quot; );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_add_database_id&amp;diff=5072&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This will associate a table name with a file type for more accurately identifying a database. This will add a record to the &lt;code&gt;[DatabaseTableName]...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_add_database_id&amp;diff=5072&amp;oldid=prev"/>
		<updated>2021-06-28T09:24:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This will associate a table name with a file type for more accurately &lt;a href=&quot;/Identifying_Databases&quot; title=&quot;Identifying Databases&quot;&gt;identifying a database&lt;/a&gt;. This will add a record to the &amp;lt;code&amp;gt;[DatabaseTableName]...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This will associate a table name with a file type for more accurately [[Identifying Databases|identifying a database]].&lt;br /&gt;
This will add a record to the &amp;lt;code&amp;gt;[DatabaseTableName]&amp;lt;/code&amp;gt; table.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
uint32_t truxton_add_database_id( uint64_t truxton_handle, uint64_t file_type_id, char const * table_and_column );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;truxton_handle&amp;lt;/code&amp;gt;==&lt;br /&gt;
The handle created by the [[truxton_create]] call.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;file_type_id&amp;lt;/code&amp;gt;==&lt;br /&gt;
The type of file to associate with this table name.&lt;br /&gt;
This corresponds to the &amp;lt;code&amp;gt;[FileTypeID]&amp;lt;/code&amp;gt; column of the &amp;lt;code&amp;gt;[DatabaseTableName]&amp;lt;/code&amp;gt; table.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;table_and_column&amp;lt;/code&amp;gt;==&lt;br /&gt;
The name of the table and column to associate with the file type.&lt;br /&gt;
This corresponds to the &amp;lt;code&amp;gt;[Name]&amp;lt;/code&amp;gt; column of the &amp;lt;code&amp;gt;[DatabaseTableName]&amp;lt;/code&amp;gt; table.&lt;br /&gt;
&lt;br /&gt;
=Remarks=&lt;br /&gt;
The &amp;lt;code&amp;gt;table_and_column&amp;lt;/code&amp;gt; parameter string should be in the format of &amp;quot;table.column&amp;quot;&lt;br /&gt;
Specifying both table and column is the recommended method for identifying a file type.&lt;br /&gt;
&lt;br /&gt;
When adding a mapping, it is better to choose table column pairs that aren't likely to appear in another file type.&lt;br /&gt;
For example, &amp;quot;user.id&amp;quot; is likely to appear in several different types of databases and therefore, not a good pair to associate with any file type.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;3-8&amp;quot;&amp;gt;&lt;br /&gt;
void truxton_add_database_id( uint64_t truxton_handle )&lt;br /&gt;
{&lt;br /&gt;
   truxton_add_database_id( truxton, Type_010_Help_Viewer, &amp;quot;ContentsTable.NamespaceId&amp;quot; );&lt;br /&gt;
   truxton_add_database_id( truxton, Type_010_Help_Viewer, &amp;quot;FileAttributeSetTable.FilterAttributeSetId&amp;quot; );&lt;br /&gt;
   truxton_add_database_id( truxton, Type_010_Help_Viewer, &amp;quot;FolderTable.NamespaceId&amp;quot; );&lt;br /&gt;
   truxton_add_database_id( truxton, Type_010_Help_Viewer, &amp;quot;IndexTable.Anchor&amp;quot; );&lt;br /&gt;
   truxton_add_database_id( truxton, Type_010_Help_Viewer, &amp;quot;OptimizedFilterTable.FilterAttributeId&amp;quot; );&lt;br /&gt;
   truxton_add_database_id( truxton, Type_010_Help_Viewer, &amp;quot;TimeStampTable.NamespaceId&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>