A clean, Markdown-based publishing platform made for writers. Write together, and build a community. https://writefreely.org
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 

30 行
655 B

  1. //go:build wflib
  2. // +build wflib
  3. /*
  4. * Copyright © 2019-2020 Musing Studio LLC.
  5. *
  6. * This file is part of WriteFreely.
  7. *
  8. * WriteFreely is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Affero General Public License, included
  10. * in the LICENSE file in this source code package.
  11. */
  12. // This file contains dummy database funcs for when writefreely is used as a
  13. // library.
  14. package writefreely
  15. func (db *datastore) isDuplicateKeyErr(err error) bool {
  16. return false
  17. }
  18. func (db *datastore) isIgnorableError(err error) bool {
  19. return false
  20. }
  21. func (db *datastore) isHighLoadError(err error) bool {
  22. return false
  23. }