예제 #1
0
        private DatabaseFactory()
        {
            connection = new SQLiteConnection(new SQLite.Net.Platform.WinRT.SQLitePlatformWinRT(), APPDB_PATH);


            /*    var sync = new SQLiteConnection(APPDB_PATH);
             * connection = new SQLiteConnection(APPDB_PATH);*/

            identityDatabase    = new IdentityDatabase(connection);
            threadDatabase      = new ThreadDatabase(connection);
            groupDatabase       = new GroupDatabase(connection);
            messageDatabase     = new MessageDatabase(connection);
            textMessageDatabase = new TextMessageDatabase(connection);

            //contactDatabase = new ContactsDatabase(connection);
            //addressDatabase = new CanonicalAddressDatabase(connection);
            directoryDatabase = new TextSecureDirectory(connection);
            pushDatabase      = new PushDatabase(connection);
            recipientDatabase = new RecipientDatabase(connection);
        }
예제 #2
0
        private DatabaseFactory()
        {

           connection = new SQLiteConnection(new SQLite.Net.Platform.WinRT.SQLitePlatformWinRT(), APPDB_PATH);
           

            /*    var sync = new SQLiteConnection(APPDB_PATH);
            connection = new SQLiteConnection(APPDB_PATH);*/

            identityDatabase = new IdentityDatabase(connection);
            threadDatabase = new ThreadDatabase(connection);
            groupDatabase = new GroupDatabase(connection);
            messageDatabase = new MessageDatabase(connection);
            textMessageDatabase = new TextMessageDatabase(connection);

            //contactDatabase = new ContactsDatabase(connection);
            //addressDatabase = new CanonicalAddressDatabase(connection);
            directoryDatabase = new TextSecureDirectory(connection);
            pushDatabase = new PushDatabase(connection);
            recipientDatabase = new RecipientDatabase(connection);
        }