Exemplo n.º 1
0
        /* Function: LoadSystemVariables
         *
         * Retrieves various system variables from the database.  This currently includes:
         *
         *		- <UsedTopicIDs>
         *		- <UsedLinkIDs>
         *		- <UsedClassIDs>
         *		- <UsedContextIDs>
         */
        protected void LoadSystemVariables()
        {
            using (SQLite.Query query = connection.Query("SELECT UsedTopicIDs, UsedLinkIDs, UsedClassIDs, UsedContextIDs from System"))
            {
                query.Step();

                usedTopicIDs   = IDObjects.NumberSet.FromString(query.NextStringColumn());
                usedLinkIDs    = IDObjects.NumberSet.FromString(query.NextStringColumn());
                usedClassIDs   = IDObjects.NumberSet.FromString(query.NextStringColumn());
                usedContextIDs = IDObjects.NumberSet.FromString(query.NextStringColumn());
            }
        }
Exemplo n.º 2
0
        /* Function: LoadSystemVariables
         *
         * Retrieves various system variables from the database.  This currently includes:
         *
         *		- <UsedTopicIDs>
         *		- <UsedLinkIDs>
         *		- <UsedImageLinkIDs>
         *		- <UsedClassIDs>
         *		- <UsedContextIDs>
         */
        protected void LoadSystemVariables()
        {
            using (SQLite.Query query = connection.Query("SELECT UsedTopicIDs, UsedLinkIDs, UsedimageLinkIDs, UsedClassIDs, UsedContextIDs " +
                                                         "from System"))
            {
                query.Step();

                usedTopicIDs.SetTo(query.NextStringColumn());
                usedLinkIDs.SetTo(query.NextStringColumn());
                usedImageLinkIDs.SetTo(query.NextStringColumn());
                usedClassIDs.SetTo(query.NextStringColumn());
                usedContextIDs.SetTo(query.NextStringColumn());
            }
        }