summaryrefslogtreecommitdiffstats
path: root/database/sqlite/fieldmapping.h
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-12-06 02:49:25 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-12-06 02:49:25 +0100
commit729b9d8911b9645a456bbd828815c279ddaa8f3d (patch)
tree565963eadfc14dd3e11d46a0963304135d564131 /database/sqlite/fieldmapping.h
parent511cbc248423b34c26917aae257576090542dc97 (diff)
downloadeurephia-729b9d8911b9645a456bbd828815c279ddaa8f3d.tar.gz
eurephia-729b9d8911b9645a456bbd828815c279ddaa8f3d.tar.xz
eurephia-729b9d8911b9645a456bbd828815c279ddaa8f3d.zip
Added sorting in db driver in eDBadminGetUserList(...). Improved comments.
Diffstat (limited to 'database/sqlite/fieldmapping.h')
-rw-r--r--database/sqlite/fieldmapping.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/database/sqlite/fieldmapping.h b/database/sqlite/fieldmapping.h
new file mode 100644
index 0000000..227b50b
--- /dev/null
+++ b/database/sqlite/fieldmapping.h
@@ -0,0 +1,34 @@
+/* fieldmapping.h -- Contains mapping from internal eurephia field ID to
+ * SQLite3 specific field names per table
+ *
+ * GPLv2 - Copyright (C) 2008 David Sommerseth <dazo@users.sourceforge.net>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; version 2
+ * of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef FIELDMAPPING_H_
+# define FIELDMAPPING_H_
+
+eFieldMap tbl_sqlite_user[] = {
+ {TABLE_USERS, SORTKEY_RECID, "uid"},
+ {TABLE_USERS, SORTKEY_UNAME, "username"},
+ {TABLE_USERS, SORTKEY_ACTIVATED, "activated"},
+ {TABLE_USERS, SORTKEY_DEACTIVATED, "deactivated"},
+ {TABLE_USERS, SORTKEY_LASTACCESS, "last_accessed"},
+ {TABLE_USERS, SORTKEY_NONE, NULL}
+};
+
+#endif /* !FIELDMAPPING_H_ */