Skip to content
Snippets Groups Projects
Select Git revision
  • libpbm_kernel
  • pred_err_handling default protected
  • pred_err_handling_more_prints
  • pbm_no_preemption_fix_test_input
  • pbm_no_preemption_fix_test
  • libpbm_kernel_fix
  • bugfix/setup
  • libpbm_kernel_fix_bak
  • pbm_no_preemption
  • pbm
  • testing
  • sose22results
  • sose22
  • master protected
  • err_detect
  • kelvin
16 results

porting

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Example.py 531 B
    # -*- coding: utf-8 -*-
    # This example shows how database commands can be executed.
    #
    # Documentation: http://docs.basex.org/wiki/Clients
    #
    # (C) BaseX Team 2005-12, BSD License
    
    import BaseXClient, time
    
    # initialize timer
    start = time.clock()
    
    # create session
    session = BaseXClient.Session('localhost', 1984, 'admin', 'admin')
    
    # perform command and print returned string
    print(session.execute("xquery 1 to 10"))
    
    # close session
    session.close()
    
    # print time needed
    time = (time.clock() - start) * 1000
    print("%.2f ms" % time)