/external/python/cpython3/Lib/sqlite3/test/ |
D | dbapi.py | 26 import sqlite3 as sqlite namespace 33 self.assertEqual(sqlite.apilevel, "2.0", 34 "apilevel is %s, should be 2.0" % sqlite.apilevel) 37 self.assertEqual(sqlite.threadsafety, 1, 38 "threadsafety is %d, should be 1" % sqlite.threadsafety) 41 self.assertEqual(sqlite.paramstyle, "qmark", 43 sqlite.paramstyle) 46 self.assertTrue(issubclass(sqlite.Warning, Exception), 50 self.assertTrue(issubclass(sqlite.Error, Exception), 54 self.assertTrue(issubclass(sqlite.InterfaceError, sqlite.Error), [all …]
|
D | regression.py | 26 import sqlite3 as sqlite namespace 32 self.con = sqlite.connect(":memory:") 44 con = sqlite.connect(":memory:", detect_types=sqlite.PARSE_COLNAMES) 56 con = sqlite.connect(":memory:", cached_statements=5) 80 con = sqlite.connect(":memory:") 89 @unittest.skipIf(sqlite.sqlite_version_info < (3, 2, 2), 'needs sqlite 3.2.2 or newer') 91 con = sqlite.connect(":memory:") 96 except sqlite.DatabaseError: 101 except sqlite.OperationalError: 126 con = sqlite.connect(":memory:",detect_types=sqlite.PARSE_DECLTYPES) [all …]
|
D | types.py | 26 import sqlite3 as sqlite namespace 35 self.con = sqlite.connect(":memory:") 97 if protocol is sqlite.PrepareProtocol: 106 self.con = sqlite.connect(":memory:", detect_types=sqlite.PARSE_DECLTYPES) 111 sqlite.converters["FLOAT"] = lambda x: 47.2 114 sqlite.converters["BOOL"] = lambda x: bool(int(x)) 115 sqlite.converters["FOO"] = DeclTypesTests.Foo 116 sqlite.converters["WRONG"] = lambda x: "WRONG" 117 sqlite.converters["NUMBER"] = float 120 del sqlite.converters["FLOAT"] [all …]
|
D | backup.py | 1 import sqlite3 as sqlite namespace 5 @unittest.skipIf(sqlite.sqlite_version_info < (3, 6, 11), "Backup API not supported") 8 cx = self.cx = sqlite.connect(":memory:") 34 bck = sqlite.connect(':memory:') 36 with self.assertRaises(sqlite.ProgrammingError): 40 bck = sqlite.connect(':memory:') 43 with self.assertRaises(sqlite.OperationalError) as cm: 45 if sqlite.sqlite_version_info < (3, 8, 8): 50 with sqlite.connect(':memory:') as bck: 54 with sqlite.connect(':memory:') as bck: [all …]
|
D | hooks.py | 25 import sqlite3 as sqlite namespace 31 con = sqlite.connect(":memory:") 36 con = sqlite.connect(":memory:") 42 con = sqlite.connect(":memory:") 43 with self.assertRaises(sqlite.ProgrammingError): 50 con = sqlite.connect(":memory:") 63 @unittest.skipIf(sqlite.sqlite_version_info < (3, 2, 1), 70 con = sqlite.connect(":memory:") 86 with self.assertRaises(sqlite.OperationalError) as cm: 94 con = sqlite.connect(":memory:") [all …]
|
D | factory.py | 25 import sqlite3 as sqlite namespace 28 class MyConnection(sqlite.Connection): 30 sqlite.Connection.__init__(self, *args, **kwargs) 38 class MyCursor(sqlite.Cursor): 40 sqlite.Cursor.__init__(self, *args, **kwargs) 45 self.con = sqlite.connect(":memory:", factory=MyConnection) 55 self.con = sqlite.connect(":memory:") 62 self.assertIsInstance(cur, sqlite.Cursor) 78 self.con = sqlite.connect(":memory:") 92 self.con = sqlite.connect(":memory:") [all …]
|
D | userfunctions.py | 26 import sqlite3 as sqlite namespace 142 self.con = sqlite.connect(":memory:") 165 with self.assertRaises(sqlite.OperationalError): 231 with self.assertRaises(sqlite.OperationalError) as cm: 281 self.con = sqlite.connect(":memory:") 310 with self.assertRaises(sqlite.OperationalError): 321 with self.assertRaises(sqlite.OperationalError) as cm: 328 with self.assertRaises(sqlite.OperationalError) as cm: 335 with self.assertRaises(sqlite.OperationalError) as cm: 342 with self.assertRaises(sqlite.OperationalError) as cm: [all …]
|
D | transactions.py | 25 import sqlite3 as sqlite namespace 37 self.con1 = sqlite.connect(get_db_path(), timeout=0.1) 40 self.con2 = sqlite.connect(get_db_path(), timeout=0.1) 114 @unittest.skipIf(sqlite.sqlite_version_info < (3, 2, 2), 119 with self.assertRaises(sqlite.OperationalError): 122 @unittest.skipIf(sqlite.sqlite_version_info < (3, 2, 2), 131 with self.assertRaises(sqlite.OperationalError): 141 con = sqlite.connect(":memory:") 148 with self.assertRaises(sqlite.InterfaceError): 153 self.con = sqlite.connect(":memory:") [all …]
|
/external/python/cpython2/Lib/sqlite3/test/ |
D | dbapi.py | 26 import sqlite3 as sqlite namespace 35 self.assertEqual(sqlite.apilevel, "2.0", 36 "apilevel is %s, should be 2.0" % sqlite.apilevel) 39 self.assertEqual(sqlite.threadsafety, 1, 40 "threadsafety is %d, should be 1" % sqlite.threadsafety) 43 self.assertEqual(sqlite.paramstyle, "qmark", 45 sqlite.paramstyle) 48 self.assertTrue(issubclass(sqlite.Warning, StandardError), 52 self.assertTrue(issubclass(sqlite.Error, StandardError), 56 self.assertTrue(issubclass(sqlite.InterfaceError, sqlite.Error), [all …]
|
D | regression.py | 26 import sqlite3 as sqlite namespace 32 self.con = sqlite.connect(":memory:") 44 con = sqlite.connect(":memory:", detect_types=sqlite.PARSE_COLNAMES) 56 con = sqlite.connect(":memory:", cached_statements=5) 80 con = sqlite.connect(":memory:") 90 if sqlite.sqlite_version_info < (3, 2, 2): 92 con = sqlite.connect(":memory:") 97 except sqlite.DatabaseError: 102 except sqlite.OperationalError: 130 con = sqlite.connect(u":memory:") [all …]
|
D | types.py | 26 import sqlite3 as sqlite namespace 36 self.con = sqlite.connect(":memory:") 87 except sqlite.ProgrammingError: 102 self.con.text_factory = sqlite.OptimizedUnicode 105 except sqlite.ProgrammingError: 124 if protocol is sqlite.PrepareProtocol: 133 self.con = sqlite.connect(":memory:", detect_types=sqlite.PARSE_DECLTYPES) 138 sqlite.converters["FLOAT"] = lambda x: 47.2 141 sqlite.converters["BOOL"] = lambda x: bool(int(x)) 142 sqlite.converters["FOO"] = DeclTypesTests.Foo [all …]
|
D | hooks.py | 25 import sqlite3 as sqlite namespace 35 con = sqlite.connect(":memory:") 40 con = sqlite.connect(":memory:") 48 con = sqlite.connect(":memory:") 52 except sqlite.ProgrammingError, e: 59 con = sqlite.connect(":memory:") 73 if sqlite.version_info < (3, 2, 1): # old SQLite versions crash on this test 79 con = sqlite.connect(":memory:") 98 except sqlite.OperationalError, e: 105 con = sqlite.connect(":memory:") [all …]
|
D | factory.py | 25 import sqlite3 as sqlite namespace 28 class MyConnection(sqlite.Connection): 30 sqlite.Connection.__init__(self, *args, **kwargs) 38 class MyCursor(sqlite.Cursor): 40 sqlite.Cursor.__init__(self, *args, **kwargs) 45 self.con = sqlite.connect(":memory:", factory=MyConnection) 55 self.con = sqlite.connect(":memory:") 62 self.assertIsInstance(cur, sqlite.Cursor) 78 self.con = sqlite.connect(":memory:") 92 self.con = sqlite.connect(":memory:") [all …]
|
D | userfunctions.py | 26 import sqlite3 as sqlite namespace 127 self.con = sqlite.connect(":memory:") 152 except sqlite.OperationalError: 223 except sqlite.OperationalError, e: 265 self.con = sqlite.connect(":memory:") 297 except sqlite.OperationalError: 314 except sqlite.OperationalError, e: 323 except sqlite.OperationalError, e: 332 except sqlite.OperationalError, e: 341 except sqlite.OperationalError, e: [all …]
|
D | transactions.py | 26 import sqlite3 as sqlite namespace 38 self.con1 = sqlite.connect(get_db_path(), timeout=0.1) 41 self.con2 = sqlite.connect(get_db_path(), timeout=0.1) 116 if sqlite.sqlite_version_info < (3, 2, 2): 125 except sqlite.OperationalError: 135 if sqlite.sqlite_version_info < (3, 2, 2): 144 except sqlite.OperationalError: 156 con = sqlite.connect(":memory:") 166 except sqlite.InterfaceError, e: 173 self.con = sqlite.connect(":memory:")
|
D | py25tests.py | 26 import sqlite3 as sqlite namespace 30 class MyConnection(sqlite.Connection): 34 sqlite.Connection.rollback(self) 39 self.con = sqlite.connect(":memory:", factory=MyConnection) 67 except sqlite.IntegrityError:
|
/external/tensorflow/tensorflow/contrib/cmake/external/ |
D | sqlite.cmake | 17 set(sqlite_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/external/sqlite) 18 set(sqlite_URL https://mirror.bazel.build/www.sqlite.org/2018/sqlite-amalgamation-3230100.zip) 20 set(sqlite_BUILD ${CMAKE_CURRENT_BINARY_DIR}/sqlite/src/sqlite) 21 set(sqlite_INSTALL ${CMAKE_CURRENT_BINARY_DIR}/sqlite/install) 24 set(sqlite_STATIC_LIBRARIES ${sqlite_INSTALL}/lib/sqlite.lib) 35 ExternalProject_Add(sqlite 36 PREFIX sqlite 40 …{CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/patches/sqlite/CMakeLists.txt ${s… 50 ExternalProject_Add(sqlite 51 PREFIX sqlite [all …]
|
/external/javasqlite/src/main/native/ |
D | sqlite_jni.c | 51 void *sqlite; /* SQLite handle */ member 811 if (h->sqlite) { in doclose() 814 sqlite3_close((sqlite3 *) h->sqlite); in doclose() 816 sqlite_close((sqlite *) h->sqlite); in doclose() 820 sqlite_close((sqlite *) h->sqlite); in doclose() 823 sqlite3_close((sqlite3 *) h->sqlite); in doclose() 826 h->sqlite = 0; in doclose() 896 if (h && h->sqlite) { in Java_SQLite_Database__1busy_1timeout() 899 sqlite3_busy_timeout((sqlite3 * ) h->sqlite, ms); in Java_SQLite_Database__1busy_1timeout() 901 sqlite_busy_timeout((sqlite *) h->sqlite, ms); in Java_SQLite_Database__1busy_1timeout() [all …]
|
/external/robolectric-shadows/shadows/framework/ |
D | Android.mk | 29 $(intermediates)/sqlite-natives:linux-x86_64/libsqlite4java.so \ 30 $(intermediates)/sqlite-natives:linux-x86/libsqlite4java.so \ 31 $(intermediates)/sqlite-natives:mac-x86_64/libsqlite4java.jnilib \ 32 $(intermediates)/sqlite-natives:windows-x86_64/sqlite4java.dll \ 33 $(intermediates)/sqlite-natives:windows-x86/sqlite4java.dll 58 $(intermediates)/sqlite-natives/linux-x86_64/libsqlite4java.so: prebuilts/tools/common/m2/repositor… 61 $(intermediates)/sqlite-natives/linux-x86/libsqlite4java.so: prebuilts/tools/common/m2/repository/c… 64 $(intermediates)/sqlite-natives/mac-x86_64/libsqlite4java.jnilib: prebuilts/tools/common/m2/reposit… 67 $(intermediates)/sqlite-natives/windows-x86_64/sqlite4java.dll: prebuilts/tools/common/m2/repositor… 70 $(intermediates)/sqlite-natives/windows-x86/sqlite4java.dll: prebuilts/tools/common/m2/repository/c…
|
/external/tensorflow/tensorflow/contrib/cmake/patches/sqlite/ |
D | CMakeLists.txt | 3 project(sqlite) project 15 add_library(sqlite ${SQLITE_SRCS}) target 18 target_compile_features(sqlite PRIVATE 22 install(TARGETS sqlite
|
/external/sqlite/dist/ |
D | Android.bp | 8 name: "sqlite-minimal-defaults", 53 name: "sqlite-defaults", 54 defaults: ["sqlite-minimal-defaults"], 69 defaults: ["sqlite-defaults"], 124 defaults: ["sqlite-defaults"], 157 defaults: ["sqlite-minimal-defaults"],
|
/external/tensorflow/tensorflow/core/lib/db/ |
D | BUILD | 11 name = "sqlite", 12 srcs = ["sqlite.cc"], 13 hdrs = ["sqlite.h"], 40 ":sqlite",
|
D | sqlite.cc | 116 sqlite3* sqlite = nullptr; in Open() local 117 int rc = sqlite3_open_v2(path.c_str(), &sqlite, flags, nullptr); in Open() 123 CHECK_EQ(SQLITE_OK, sqlite3_extended_result_codes(sqlite, 1)); in Open() 124 CHECK_EQ(SQLITE_OK, sqlite3_snapfn_init(sqlite, nullptr, nullptr)); in Open() 128 sqlite3_stmt* begin = PrepareRawOrDie(sqlite, "BEGIN"); in Open() 129 sqlite3_stmt* commit = PrepareRawOrDie(sqlite, "COMMIT"); in Open() 130 sqlite3_stmt* rollback = PrepareRawOrDie(sqlite, "ROLLBACK"); in Open() 131 *db = new Sqlite(sqlite, begin, commit, rollback); in Open()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowSQLiteConnection.java | 9 import android.database.sqlite.SQLiteAbortException; 10 import android.database.sqlite.SQLiteAccessPermException; 11 import android.database.sqlite.SQLiteBindOrColumnIndexOutOfRangeException; 12 import android.database.sqlite.SQLiteBlobTooBigException; 13 import android.database.sqlite.SQLiteCantOpenDatabaseException; 14 import android.database.sqlite.SQLiteConstraintException; 15 import android.database.sqlite.SQLiteCustomFunction; 16 import android.database.sqlite.SQLiteDatabaseCorruptException; 17 import android.database.sqlite.SQLiteDatabaseLockedException; 18 import android.database.sqlite.SQLiteDatatypeMismatchException; [all …]
|
/external/tensorflow/tensorflow/core/summary/ |
D | BUILD | 22 "//tensorflow/core/lib/db:sqlite", 49 "//tensorflow/core/lib/db:sqlite", 64 "//tensorflow/core/lib/db:sqlite", 125 "//tensorflow/core/lib/db:sqlite", 136 "//tensorflow/core/lib/db:sqlite",
|