Documentationcurrent version
Help us improve the docs by fixing typos and proposing enhancements.

Nikita

Action "db.user.remove"

Remove a user for the destination database.

Schema definitions

definitions =
  config:
    type: 'object'
    properties:
      'username':
        type: 'string'
        description: '''
        The name of the user to remove.
        '''
    required: [
      'username'
      'admin_username', 'admin_password', 'engine', 'host'
    ]

Handler

handler = ({config}) ->
  await @db.query config,
    command: "DROP USER IF EXISTS #{config.username};"

Exports

module.exports =
  handler: handler
  metadata:
    argument_to_config: 'username'
    global: 'db'
    definitions: definitions

Dependencies

{command} = require '../query'
Edit on GitHub
Navigate
About

Nikita is an open source project hosted on GitHub and developed by Adaltas.