sqlthon 0.1.4__tar.gz → 0.1.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sqlthon-0.1.4 → sqlthon-0.1.5}/PKG-INFO +1 -1
- {sqlthon-0.1.4 → sqlthon-0.1.5}/pyproject.toml +1 -1
- {sqlthon-0.1.4 → sqlthon-0.1.5}/src/sqlthon/__init__.py +2 -2
- {sqlthon-0.1.4 → sqlthon-0.1.5}/src/sqlthon/core.py +3 -3
- {sqlthon-0.1.4 → sqlthon-0.1.5}/src/sqlthon.egg-info/PKG-INFO +1 -1
- {sqlthon-0.1.4 → sqlthon-0.1.5}/README.md +0 -0
- {sqlthon-0.1.4 → sqlthon-0.1.5}/setup.cfg +0 -0
- {sqlthon-0.1.4 → sqlthon-0.1.5}/src/sqlthon/keywords.py +0 -0
- {sqlthon-0.1.4 → sqlthon-0.1.5}/src/sqlthon.egg-info/SOURCES.txt +0 -0
- {sqlthon-0.1.4 → sqlthon-0.1.5}/src/sqlthon.egg-info/dependency_links.txt +0 -0
- {sqlthon-0.1.4 → sqlthon-0.1.5}/src/sqlthon.egg-info/top_level.txt +0 -0
|
@@ -14,8 +14,8 @@ Channel: https://ble.ir/saums_channel
|
|
|
14
14
|
|
|
15
15
|
from .core import *
|
|
16
16
|
|
|
17
|
-
__all__ = ['Field', 'Connect', 'SqlthonError', 'YouHackerError', 'TableError', 'TableNotFoundError', 'TableAlreadyExistsError', 'ColumnError', 'ColumnNotFoundError', 'RecordError', 'UniqueConstraintError', 'NotNullConstraintError', 'DataTypeError', 'ForeignKeyError', 'CheckConstraintError', 'PrimaryKeyError', 'QueryError', '
|
|
18
|
-
__version__ = '0.1.
|
|
17
|
+
__all__ = ['Field', 'Connect', 'SqlthonError', 'YouHackerError', 'TableError', 'TableNotFoundError', 'TableAlreadyExistsError', 'ColumnError', 'ColumnNotFoundError', 'RecordError', 'UniqueConstraintError', 'NotNullConstraintError', 'DataTypeError', 'ForeignKeyError', 'CheckConstraintError', 'PrimaryKeyError', 'QueryError', 'SyntaxError_', 'NoSuchFunctionError', 'WrongNumberOfArgumentsError', 'DatabaseError', 'DatabaseLockedError', 'DatabaseReadOnlyError', 'DatabaseCorruptError', 'DatabaseFullError', 'DatabaseBusyError', 'IndexError_', 'IndexNotFoundError', 'IndexAlreadyExistsError', 'ViewError', 'ViewNotFoundError', 'ViewAlreadyExistsError', 'TransactionError', 'TransactionAlreadyActiveError', 'TransactionNotActiveError', 'BackupError', 'BackupPathError', 'BackupPermissionError', 'CsvError', 'CsvFileNotFoundError', 'CsvFormatError', 'PandasError', 'PandasNotInstalledError', 'ValidationError', 'InvalidColumnCountError', 'InvalidValueError']
|
|
18
|
+
__version__ = '0.1.5'
|
|
19
19
|
__author__ = "SAUMS"
|
|
20
20
|
__email__ = "saums1391@gmail.com"
|
|
21
21
|
__description__ = "Operate With SQLite3 Buy Simple"
|
|
@@ -440,7 +440,7 @@ class ForeignKeyError(RecordError):__module__ = None
|
|
|
440
440
|
class CheckConstraintError(RecordError):__module__ = None
|
|
441
441
|
class PrimaryKeyError(RecordError):__module__ = None
|
|
442
442
|
class QueryError(SqlthonError):__module__ = None
|
|
443
|
-
class
|
|
443
|
+
class SyntaxError_(QueryError):__module__ = None
|
|
444
444
|
class NoSuchFunctionError(QueryError):__module__ = None
|
|
445
445
|
class WrongNumberOfArgumentsError(QueryError):__module__ = None
|
|
446
446
|
class DatabaseError(SqlthonError):__module__ = None
|
|
@@ -449,7 +449,7 @@ class DatabaseReadOnlyError(DatabaseError):__module__ = None
|
|
|
449
449
|
class DatabaseCorruptError(DatabaseError):__module__ = None
|
|
450
450
|
class DatabaseFullError(DatabaseError):__module__ = None
|
|
451
451
|
class DatabaseBusyError(DatabaseError):__module__ = None
|
|
452
|
-
class
|
|
452
|
+
class IndexError_(SqlthonError):__module__ = None
|
|
453
453
|
class IndexNotFoundError(IndexError):__module__ = None
|
|
454
454
|
class IndexAlreadyExistsError(IndexError):__module__ = None
|
|
455
455
|
class ViewError(SqlthonError):__module__ = None
|
|
@@ -508,7 +508,7 @@ def _handler_error(e: Exception):
|
|
|
508
508
|
raise WrongNumberOfArgumentsError(msg) from None
|
|
509
509
|
|
|
510
510
|
elif "syntax error" in msg:
|
|
511
|
-
raise
|
|
511
|
+
raise SyntaxError_(f"invalid {msg.split()[-1].replace('"', "'")}") from None
|
|
512
512
|
|
|
513
513
|
elif "database is locked" in msg:
|
|
514
514
|
raise DatabaseLockedError(msg) from None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|