Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
agkyra
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
agkyra
Commits
3608fb0d
Commit
3608fb0d
authored
9 years ago
by
Giorgos Korfiatis
Browse files
Options
Downloads
Patches
Plain Diff
use pysqlite2 if available
parent
50dc9807
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
agkyra/syncer/database.py
+6
-1
6 additions, 1 deletion
agkyra/syncer/database.py
with
6 additions
and
1 deletion
agkyra/syncer/database.py
+
6
−
1
View file @
3608fb0d
...
...
@@ -14,7 +14,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
time
import
sqlite3
try
:
import
pysqlite2.dbapi2
as
sqlite3
except
ImportError
:
import
sqlite3
import
json
import
logging
import
random
...
...
@@ -26,6 +29,8 @@ from agkyra.syncer import common, utils
logger
=
logging
.
getLogger
(
__name__
)
logger
.
debug
(
"
sqlite3.version = %s
"
%
sqlite3
.
version
)
logger
.
debug
(
"
sqlite3.sqlite_version = %s
"
%
sqlite3
.
sqlite_version
)
thread_local_data
=
threading
.
local
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment