1. 07 Apr, 2019 2 commits
  2. 30 Mar, 2019 1 commit
  3. 29 Mar, 2019 2 commits
    • Yuanle Song's avatar
      fix a file name error in doc string. · ea9665e2
      Yuanle Song authored
      ea9665e2
    • Yuanle Song's avatar
      v0.101.0 redesign use of main and user database. · 8b6cf027
      Yuanle Song authored
      the old design have flaws and limitations. see :id001: and :id002: in
      operational file.
      
      new design:
      
      open :memory: db readwrite, this will be the m_db handler.
      
      try attach main db at known path (readonly if possible) to "maindb".
      if failed, try next known path,
      if all failed, initDB() should return false and gave up.
      
      try attach user db at known path to "userdb" schema, if failed,
      create :memory: db and initialize it as user db. attach it as "userdb"
      schema.
      
      update all query against main db to query from maindb.* table.
      update all SQL against user db to run again userdb.* table.
      
      benefits:
      - access to user db is concurrent safe. multiple libpyzy app won't overwrite
        user's user db file and lose data.
      - there is no need to saveUserDB() using timer in the bg.
      - there is no need to copy data from user db to :memory:, if user db is
        large, this can lower memory usage.
      8b6cf027
  4. 28 Mar, 2019 3 commits
    • Yuanle Song's avatar
      v0.100.1 code review for Database.cc · 95b8f0b6
      Yuanle Song authored
      - add error handling for all db operations
      - refactoring Database.cc to make it more readable.
        add doc for Database.cc
        extract method copyDB(), initUserDB(), setPragmaOnMainDB()
      - fix old timeoutCallback(), now named cb_saveUserDB()
        saveUserDB() should not be in the condition, because save can fail endlessly
        if file system have problem.
      - no longer require main db to be a regular file. symlink should work fine.
      - drop the dreaded overly reused class variable m_buffer. use meaningful names
        in current context.
      - escape string in SQL statements
      - update meson.build
        add prefix in PKGDATADIR
        define glib logging domain
        disable glib asserts for release build
      - I will use so file version in git log.
      95b8f0b6
    • Yuanle Song's avatar
      add meson.build for libpyzy project. · 43004d6f
      Yuanle Song authored
      updated meson.build for pinyin_parser/ sub project.
      it integrates swig build step in meson now.
      43004d6f
    • Yuanle Song's avatar
      add pinyin_parser/ subproject. · f6eaead1
      Yuanle Song authored
      it builds the libpinyin_parser.so python module.
      f6eaead1
  5. 26 Aug, 2018 11 commits
  6. 08 Aug, 2016 2 commits
  7. 14 Nov, 2015 1 commit
  8. 12 Feb, 2014 2 commits
  9. 31 Jan, 2014 1 commit
  10. 30 Jan, 2014 1 commit
    • Osamu Aoki's avatar
      Fix missing dictionary etc. · 79cf9e5d
      Osamu Aoki authored
        * Update the maintainer to make it part of pkg-ime.
        * Update uploaders.
        * Ship database in install. Closes: #737136, #737136
        * Drop boost-dev since it is not used by ./configure as default.
        * Lintian override for C++ library symbols.
      79cf9e5d
  11. 16 Oct, 2013 1 commit
  12. 10 Oct, 2013 1 commit
  13. 27 Sep, 2013 7 commits
  14. 10 Feb, 2013 1 commit
  15. 07 Feb, 2013 4 commits