We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f57b42f commit c0f571cCopy full SHA for c0f571c
2 files changed
sqlite_utils/db.py
@@ -237,37 +237,30 @@ class Default:
237
238
class AlterError(Exception):
239
"Error altering table"
240
- pass
241
242
243
class NoObviousTable(Exception):
244
"Could not tell which table this operation refers to"
245
246
247
248
class NoTable(Exception):
249
"Specified table does not exist"
250
251
252
253
class BadPrimaryKey(Exception):
254
"Table does not have a single obvious primary key"
255
256
257
258
class NotFoundError(Exception):
259
"Record not found"
260
261
262
263
class PrimaryKeyRequired(Exception):
264
"Primary key needs to be specified"
265
266
267
268
class InvalidColumns(Exception):
269
"Specified columns do not exist"
270
271
272
273
class DescIndex(str):
@@ -3852,7 +3845,7 @@ def jsonify_if_needed(value):
3852
3845
3853
3846
3854
3847
def resolve_extracts(
3855
- extracts: Optional[Union[Dict[str, str], List[str], Tuple[str]]]
3848
+ extracts: Optional[Union[Dict[str, str], List[str], Tuple[str]]],
3856
3849
) -> dict:
3857
3850
if extracts is None:
3858
3851
extracts = {}
tests/test_cli.py
@@ -916,7 +916,7 @@ def test_query_json_with_json_cols(db_path):
916
917
@pytest.mark.parametrize(
918
"content,is_binary",
919
- [(b"\x00\x0Fbinary", True), ("this is text", False), (1, False), (1.5, False)],
+ [(b"\x00\x0fbinary", True), ("this is text", False), (1, False), (1.5, False)],
920
)
921
def test_query_raw(db_path, content, is_binary):
922
Database(db_path)["files"].insert({"content": content})
@@ -931,7 +931,7 @@ def test_query_raw(db_path, content, is_binary):
931
932
933
934
935
936
def test_query_raw_lines(db_path, content, is_binary):
937
Database(db_path)["files"].insert_all({"content": content} for _ in range(3))
0 commit comments