logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

wiki-toolkit-setupdb - Set up a database storage backend for Wiki::Toolkit.

Author

       Kake Pugh (kake@earth.li).

Description

       Takes three mandatory arguments:

       type
           The database type.  Should be one of 'postgres', 'mysql' and 'sqlite'.

       name
           The database name.

       user
           The  user  that  connects  to  the database. It must have permission to create and drop tables in the
           database.

       two optional arguments:

       pass
           The user's database password.

       host
           The hostname of the machine the database server is running on (omit for local databases).

       and one optional flag:

       force-preclear
           By default, this script will leave any existing data alone.  To force that to be cleared  out  first,
           pass the "--force-preclear" flag.

Name

       wiki-toolkit-setupdb - Set up a database storage backend for Wiki::Toolkit.

See Also

       Wiki::Toolkit

perl v5.32.0                                       2021-01-04                           WIKI-TOOLKIT-SETUPDB(1p)

Synopsis

         # Set up or update the storage backend, leaving any existing data
         # intact. Useful for upgrading from old versions of Wiki::Toolkit to
         # newer ones with more backend features.

         wiki-toolkit-setupdb --type postgres
                              --name mywiki \
                              --user wiki  \
                              --pass wiki \
                              --host 'db.example.com'

         # Clear out any existing data and set up a fresh backend from scratch.

         wiki-toolkit-setupdb --type postgres
                              --name mywiki \
                              --user wiki  \
                              --pass wiki  \
                              --force-preclear

See Also