Files
mariadb-connector-python/bench_mysql.py
rusher a169c3949d [misc] various change
- correct tests according to server/maxscale, and multiple python version
  - Cpython (3.6.0, 3.8.0) pypy (3.6-7.2.0), miniconda3-4.3.30
- add scroll test
- benchmark added to test suite. See benchmarks/README.md for info
- cursor.scroll now permit position 0 when using absolute mode
- return Cursor.rownumber None if no result-set, not 0
- exception missing type sqlstate and according tests
2019-11-29 12:13:05 +01:00

20 lines
452 B
Python

#!/usr/bin/env python3 -O
# -*- coding: utf-8 -*-
# requirement: pip install MySQL-pythonmysql-connector-python pyperf
import mysql.connector
from benchmarks.internal_bench import test_suite
from benchmarks.internal_bench import run_test
from test.conf_test import conf
def main():
default_conf = conf()
conn = mysql.connector.connect(**default_conf)
run_test(test_suite(), conn)
conn.close()
if __name__ == "__main__":
main()