mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-08-11 02:43:15 +00:00

- 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
20 lines
452 B
Python
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() |