GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - errbotio/err-storage-sql: Errbot storage plugin for SQL databases.

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 
sql.plug
sql.plug
 
 
sql.py
sql.py
 
 
test_sql.py
test_sql.py
 
 
tox.ini
tox.ini
 
 

Repository files navigation

SQL storage plugin for errbot

About

Errbot is a python chatbot, this storage plugin allows you to use it with SQL databases as a persistent storage. By using SQLAlchemy, it has the support for Firebird, Microsoft SQL Server, MySQL, Oracle, PostgreSQL, SQLite, Sybase, IBM DB2, Amazon Redshift, exasol, Sybase SQL Anywhere, MonetDB.

Installation

  1. Install the support for the database you want to use. See SQLalchemy doc
  2. Then you need to add this section to your config.py, following this example:
BOT_EXTRA_STORAGE_PLUGINS_DIR='/home/gbin/err-storage'
STORAGE = 'SQL'
STORAGE_CONFIG = {
   'data_url': 'postgresql://scott:tiger@localhost/test',
   }
  1. Start your bot in text mode: errbot -T to give it a shot.

If you want to migrate from the local storage to SQL, you should be able to backup your data (with STORAGE commented) then restore it back with STORAGE uncommented.

Running Tests

To run the automated test suite:

  1. Create and activate a Python virtual environment:
    python3 -m venv .venv
    source .venv/bin/activate
  2. Install the dependencies and testing requirements:
    pip install -r requirements.txt errbot pytest tox
  3. Run the tests using pytest directly:
    pytest
    Or run both tests and style checks using tox:
    tox

About

Errbot storage plugin for SQL databases.

Resources

Readme
Activity
Custom properties

Stars

14 stars

Watchers

4 watching

Forks

8 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.