A clean, Markdown-based publishing platform made for writers. Write together, and build a community. https://writefreely.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
637 B

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