Пример #1
0
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA	 02110-1301 USA

from emmalib.providers import emma_registered_providers

try:
    import sqlite3
    emma_registered_providers.append('sqlite')
except:
    pass

from emmalib.providers.sqlite.SQLiteHost import *
from SQLiteDb import SQLiteDb
from SQLiteHandle import SQLiteHandle
from SQLiteHost import SQLiteHost
from SQLiteIndex import SQLiteIndex
from SQLiteResult import SQLiteResult
from SQLiteTable import SQLiteTable
Пример #2
0
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA	 02110-1301 USA

from emmalib.providers import emma_registered_providers

try:
    import sqlite3
    emma_registered_providers.append('sqlite')
except:
    pass

from providers.sqlite.SQLiteHost import *
from SQLiteDb import SQLiteDb
from SQLiteHandle import SQLiteHandle
from SQLiteHost import SQLiteHost
from SQLiteIndex import SQLiteIndex
from SQLiteResult import SQLiteResult
from SQLiteTable import SQLiteTable
Пример #3
0
# Copyright (C) 2006 Florian Schmidt ([email protected])
#               2014 Nickolay Karnaukhov ([email protected])
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA	 02110-1301 USA

from emmalib.providers import emma_registered_providers

try:
    import _mysql
    import _mysql_exceptions
    emma_registered_providers.append('mysql')
except:
    pass

from MySqlDb import MySqlDb
from MySqlHost import MySqlHost
from MySqlIndex import MySqlIndex
from MySqlTable import MySqlTable