Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop using sqlite:///:memory: #10

Open
glimchb opened this issue Aug 17, 2022 · 0 comments
Open

stop using sqlite:///:memory: #10

glimchb opened this issue Aug 17, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@glimchb
Copy link
Member

glimchb commented Aug 17, 2022

example

    command: ['sztpd', 'postgresql://sztpd-admin:secret@localhost:5432/sztpd-db']

see opiproject/opi-poc#108

more documentation https://pypi.org/project/sztpd/

The "database-url" argument has the form "<dialect>:<dialect-specific-path>".
Three dialects are supported: "sqlite", "postgresql", and "mysql+pymysql".
The <dialect-specific-path> for each of these is described below.

For the "sqlite" dialect, <dialect-specific-path> follows the format
"///<sqlite-path>", where <sqlite-path> can be one of:

  :memory:    - an in-memory database (only useful for testing)
  <filepath>  - an OS-specific filepath to a persisted database file

  Examples:

    $ sztpd sqlite:///:memory:                      (memory)
    $ sztpd sqlite:///relative/path/to/sztpd.db     (unix)
    $ sztpd sqlite:////absolute/path/to/sztpd.db    (unix)
    $ sztpd sqlite:///C:\path\to\sztpd.db           (windows)

For both the "postgresql" and "mysql+pymysql" dialects, <dialect-specific-path>
follows the format "//<user>[:<passwd>]@<host>:<port>/<database-name>".

  Examples:

    The following two examples assume the database is called "sztpd" and
    that the database server listens on the loopback address with no TLS.

      $ sztpd mysql+pymysql://user:pass@localhost:3306/sztpd
      $ sztpd postgresql://user:pass@localhost:5432/sztpd

Please see the documentation for more information.
@glimchb glimchb changed the title sztp: switch from sqlite:///:memory: to postgresql sztp: stop using sqlite:///:memory: Aug 17, 2022
@glimchb glimchb transferred this issue from opiproject/opi-prov-life Oct 6, 2022
@glimchb glimchb changed the title sztp: stop using sqlite:///:memory: stop using sqlite:///:memory: Oct 17, 2023
@glimchb glimchb added the enhancement New feature or request label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant