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.

__main__.py 634B

5 years ago
1234567891011121314151617181920212223
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Copyright (C) 2009-2018 the sqlparse authors and contributors
  5. # <see AUTHORS file>
  6. #
  7. # This module is part of python-sqlparse and is released under
  8. # the BSD License: https://opensource.org/licenses/BSD-3-Clause
  9. """Entrypoint module for `python -m sqlparse`.
  10. Why does this file exist, and why __main__? For more info, read:
  11. - https://www.python.org/dev/peps/pep-0338/
  12. - https://docs.python.org/2/using/cmdline.html#cmdoption-m
  13. - https://docs.python.org/3/using/cmdline.html#cmdoption-m
  14. """
  15. import sys
  16. from sqlparse.cli import main
  17. if __name__ == '__main__':
  18. sys.exit(main())