mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
Use pysqlite3 if available
This commit is contained in:
parent
c88f0a4d46
commit
152eb2afaf
6 changed files with 10 additions and 6 deletions
|
|
@ -7,7 +7,7 @@ import json
|
|||
import sys
|
||||
import csv as csv_std
|
||||
import tabulate
|
||||
import sqlite3
|
||||
from .utils import sqlite3
|
||||
|
||||
|
||||
def output_options(fn):
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import sqlite3
|
||||
from .utils import sqlite3
|
||||
from collections import namedtuple
|
||||
import datetime
|
||||
import hashlib
|
||||
|
|
|
|||
4
sqlite_utils/utils.py
Normal file
4
sqlite_utils/utils.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
try:
|
||||
import pysqlite3 as sqlite3
|
||||
except ImportError:
|
||||
import sqlite3
|
||||
Loading…
Add table
Add a link
Reference in a new issue