Skip to content

crossdb-org/crossdb-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Driver for CrossDB

Pre-requirement

You need to install crossdb lib first

Import

It's a single python file lib, you can just include in your project folder and import directly, or you can install to python.

python setup.py install

Example

import crossdb

conn = crossdb.connect(database=":memory:")
cursor = conn.cursor()
cursor.execute("CREATE TABLE student (name CHAR(16), age INT, class CHAR(16))")
cursor.execute("INSERT INTO student (name,age,class) VALUES ('jack',10,'3-1'), ('tom',11,'2-5')")
cursor.execute("SELECT * from student")
for row in cursor:
	print (row)

About

CrossDB Python Driver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages