Index: /branches/jhoblitt/glueforge/templates/psdb/create_h.tt
===================================================================
--- /branches/jhoblitt/glueforge/templates/psdb/create_h.tt	(revision 3607)
+++ /branches/jhoblitt/glueforge/templates/psdb/create_h.tt	(revision 3607)
@@ -0,0 +1,7 @@
+/** Creates a new [% table_name %] table
+ *
+ * @return true on success
+ */
+bool [% namespace %]CreateTable(
+    psDB            *dbh                ///< Database handle
+);
Index: /branches/jhoblitt/glueforge/templates/psdb/datatype.tt
===================================================================
--- /branches/jhoblitt/glueforge/templates/psdb/datatype.tt	(revision 3607)
+++ /branches/jhoblitt/glueforge/templates/psdb/datatype.tt	(revision 3607)
@@ -0,0 +1,8 @@
+[% USE format -%]
+[% indented = format('%-15s %s') -%]
+typedef struct {
+[% SET i = 0 -%]
+[% FOREACH item = columns -%]
+    [% indented("$item.ctype", "$item.name") %];
+[% END -%]
+} [% data_type %];
Index: /branches/jhoblitt/glueforge/templates/psdb/init_h.tt
===================================================================
--- /branches/jhoblitt/glueforge/templates/psdb/init_h.tt	(revision 3607)
+++ /branches/jhoblitt/glueforge/templates/psdb/init_h.tt	(revision 3607)
@@ -0,0 +1,11 @@
+/** Opens a new database connection
+ *
+ *  @return A new psDB object if the database connection is successful or NULL
+ *  on failure.
+ */
+psDB *[% namespace %]Init(
+    const char      *host,              ///< Database server hostname
+    const char      *user,              ///< Database username
+    const char      *passwd,            ///< Database password
+    const char      *dbname             ///< Database namespace
+);
Index: /branches/jhoblitt/glueforge/templates/psdb/insert_h.tt
===================================================================
--- /branches/jhoblitt/glueforge/templates/psdb/insert_h.tt	(revision 3607)
+++ /branches/jhoblitt/glueforge/templates/psdb/insert_h.tt	(revision 3607)
@@ -0,0 +1,17 @@
+[% USE format -%]
+[% indented = format('%-15s %s') -%]
+/** Insert a single row into a table
+ *
+ * This function constructs and inserts a single row based on it's parameters.
+ *
+ * @return true on success
+ */
+bool [% namespace %]Insert(
+    psDB            *dbh,               ///< Database handle
+[%- SET i = 0 -%]
+[% FOREACH item = columns -%]
+[% IF i == 0 %][% i = 1 %][% ELSE %],[% END %]
+    [% indented("$item.ctype", "$item.name") -%]
+[% i = i + 1 -%]
+[% END %]
+);
