doquedb package
Subpackages
- doquedb.client package
- Submodules
- doquedb.client.connection module
- doquedb.client.constants module
- doquedb.client.datasource module
DataSourceDataSource.__connection_listDataSource.__connection_elementDataSource.__portmapDataSource.__expunge_portDataSource.__hostnameDataSource.__portnumberDataSource.__protocol_verDataSource.__sessionmapDataSource.__is_closedDataSource.__masterIDDataSource.__authorizationDataSource.CHECK_CONNECTION_POOL_PERIODDataSource.CONNECTION_THRESHOLDDataSource.DATABASE_ALLDataSource.MAXIMUM_CONNECTION_POOL_COUNTDataSource.TIME_UNITDataSource.authorizationDataSource.close()DataSource.create_session()DataSource.expunge_port()DataSource.get_client_connection()DataSource.is_database_available()DataSource.is_server_available()DataSource.master_idDataSource.new_client_connection()DataSource.new_port()DataSource.open()DataSource.pop_port()DataSource.push_port()DataSource.remove_session()DataSource.session_exist()DataSource.shutdown()
- doquedb.client.object module
- doquedb.client.port module
- doquedb.client.prepare_statement module
- doquedb.client.resultset module
ResultSetResultSet.__statusResultSet.__statusResultSet.__rowcountResultSet.__is_closedResultSet.cancel()ResultSet.close()ResultSet.get_next_tuple()ResultSet.get_row_as_tuple()ResultSet.get_status()ResultSet.is_closedResultSet.last_statusResultSet.metadataResultSet.next()ResultSet.rowResultSet.rowcount
- doquedb.client.session module
SessionSession.__dbnameSession.__usernameSession.__session_idSession.close()Session.close_internal()Session.close_prepare()Session.create_prepare_statement()Session.datasourceSession.dbnameSession.erase_prepare_statement()Session.execute()Session.execute_prepare()Session.get_database_product_ver()Session.id_Session.is_validSession.prepared_mapSession.username
- Module contents
- doquedb.common package
- Submodules
- doquedb.common.abstracts module
- doquedb.common.arraydata module
- doquedb.common.constants module
ClassIDClassID.BINARY_DATAClassID.COLUMN_META_DATAClassID.COMPRESSED_BINARY_DATAClassID.COMPRESSED_STRING_DATAClassID.DATA_ARRAY_DATAClassID.DATE_DATAClassID.DATE_TIME_DATAClassID.DECIMAL_DATAClassID.DOUBLE_DATAClassID.ERROR_LEVELClassID.EXCEPTION_DATAClassID.FLOAT_DATAClassID.INTEGER64_DATAClassID.INTEGER_ARRAY_DATAClassID.INTEGER_DATAClassID.LANGUAGE_DATAClassID.NONEClassID.NULL_DATAClassID.REQUESTClassID.RESULTSET_META_DATAClassID.STATUSClassID.STRING_ARRAY_DATAClassID.STRING_DATAClassID.UNSIGNED_INTEGER64_DATAClassID.UNSIGNED_INTEGER_ARRAY_DATAClassID.UNSIGNED_INTEGER_DATAClassID.WORD_DATA
CountryCountry.ADCountry.AECountry.AFCountry.AGCountry.AICountry.ALCountry.AMCountry.ANCountry.AOCountry.AQCountry.ARCountry.ASCountry.ATCountry.AUCountry.AWCountry.AZCountry.BACountry.BBCountry.BDCountry.BECountry.BFCountry.BGCountry.BHCountry.BICountry.BJCountry.BMCountry.BNCountry.BOCountry.BRCountry.BSCountry.BTCountry.BVCountry.BWCountry.BYCountry.BZCountry.CACountry.CCCountry.CDCountry.CFCountry.CGCountry.CHCountry.CICountry.CKCountry.CLCountry.CMCountry.CNCountry.COCountry.CRCountry.CUCountry.CVCountry.CXCountry.CYCountry.CZCountry.DECountry.DJCountry.DKCountry.DMCountry.DOCountry.DZCountry.ECCountry.EECountry.EGCountry.EHCountry.ERCountry.ESCountry.ETCountry.FICountry.FJCountry.FKCountry.FMCountry.FOCountry.FRCountry.FXCountry.GACountry.GBCountry.GDCountry.GECountry.GFCountry.GHCountry.GICountry.GLCountry.GMCountry.GNCountry.GPCountry.GQCountry.GRCountry.GSCountry.GTCountry.GUCountry.GWCountry.GYCountry.HKCountry.HMCountry.HNCountry.HRCountry.HTCountry.HUCountry.IDCountry.IECountry.ILCountry.INCountry.IOCountry.IQCountry.IRCountry.ISCountry.ITCountry.JMCountry.JOCountry.JPCountry.KECountry.KGCountry.KHCountry.KICountry.KMCountry.KNCountry.KPCountry.KRCountry.KWCountry.KYCountry.KZCountry.LACountry.LASTCountry.LBCountry.LCCountry.LICountry.LKCountry.LRCountry.LSCountry.LTCountry.LUCountry.LVCountry.LYCountry.MACountry.MCCountry.MDCountry.MGCountry.MHCountry.MKCountry.MLCountry.MMCountry.MNCountry.MOCountry.MPCountry.MQCountry.MRCountry.MSCountry.MTCountry.MUCountry.MVCountry.MWCountry.MXCountry.MYCountry.MZCountry.NACountry.NCCountry.NECountry.NFCountry.NGCountry.NICountry.NLCountry.NOCountry.NPCountry.NRCountry.NUCountry.NZCountry.OMCountry.PACountry.PECountry.PFCountry.PGCountry.PHCountry.PKCountry.PLCountry.PMCountry.PNCountry.PRCountry.PSCountry.PTCountry.PWCountry.PYCountry.QACountry.RECountry.ROCountry.RUCountry.RWCountry.SACountry.SBCountry.SCCountry.SDCountry.SECountry.SGCountry.SHCountry.SICountry.SJCountry.SKCountry.SLCountry.SMCountry.SNCountry.SOCountry.SRCountry.STCountry.SVCountry.SYCountry.SZCountry.TCCountry.TDCountry.TFCountry.TGCountry.THCountry.TJCountry.TKCountry.TLCountry.TMCountry.TNCountry.TOCountry.TRCountry.TTCountry.TVCountry.TWCountry.TZCountry.UACountry.UGCountry.UMCountry.UNDEFINEDCountry.USCountry.UYCountry.UZCountry.VACountry.VCCountry.VECountry.VGCountry.VICountry.VNCountry.VUCountry.WFCountry.WSCountry.YECountry.YTCountry.YUCountry.ZACountry.ZMCountry.ZWCountry.code_symbolCountry.is_valid()Country.to_code()Country.to_symbol()
DataTypeDataType.ARRAYDataType.BINARYDataType.BITSETDataType.COLUMN_META_DATADataType.DATADataType.DATEDataType.DATE_TIMEDataType.DECIMALDataType.DOUBLEDataType.FLOATDataType.INTEGERDataType.INTEGER64DataType.LANGUAGEDataType.NULLDataType.OBJECTIDDataType.STRINGDataType.UNDEFINEDDataType.WORD
LanguageLanguage.AALanguage.ABLanguage.AFLanguage.AMLanguage.ARLanguage.ASLanguage.AYLanguage.AZLanguage.BALanguage.BELanguage.BGLanguage.BHLanguage.BILanguage.BNLanguage.BOLanguage.BRLanguage.CALanguage.COLanguage.CSLanguage.CYLanguage.DALanguage.DELanguage.DZLanguage.ELLanguage.ENLanguage.EOLanguage.ESLanguage.ETLanguage.EULanguage.FALanguage.FILanguage.FJLanguage.FOLanguage.FRLanguage.FYLanguage.GALanguage.GDLanguage.GLLanguage.GNLanguage.GULanguage.HALanguage.HELanguage.HILanguage.HRLanguage.HULanguage.HYLanguage.IALanguage.IDLanguage.IELanguage.IKLanguage.ISLanguage.ITLanguage.IULanguage.JALanguage.JWLanguage.KALanguage.KKLanguage.KLLanguage.KMLanguage.KNLanguage.KOLanguage.KSLanguage.KULanguage.KYLanguage.LALanguage.LASTLanguage.LNLanguage.LOLanguage.LTLanguage.LVLanguage.MGLanguage.MILanguage.MKLanguage.MLLanguage.MNLanguage.MOLanguage.MRLanguage.MSLanguage.MTLanguage.MYLanguage.NALanguage.NELanguage.NLLanguage.NOLanguage.OCLanguage.OMLanguage.ORLanguage.PALanguage.PLLanguage.PSLanguage.PTLanguage.QULanguage.RMLanguage.RNLanguage.ROLanguage.RULanguage.RWLanguage.SALanguage.SDLanguage.SGLanguage.SHLanguage.SILanguage.SKLanguage.SLLanguage.SMLanguage.SNLanguage.SOLanguage.SQLanguage.SRLanguage.SSLanguage.STLanguage.SULanguage.SVLanguage.SWLanguage.TALanguage.TELanguage.TGLanguage.THLanguage.TILanguage.TKLanguage.TLLanguage.TNLanguage.TOLanguage.TRLanguage.TSLanguage.TTLanguage.TWLanguage.UGLanguage.UKLanguage.UNDEFINEDLanguage.URLanguage.UZLanguage.VILanguage.VOLanguage.WOLanguage.XHLanguage.YILanguage.YOLanguage.ZALanguage.ZHLanguage.ZULanguage.code_symbolLanguage.is_valid()Language.to_code()Language.to_symbol()
SQLTypeSQLType.BIG_INTSQLType.BINARYSQLType.BINARY_LARGE_OBJECTSQLType.BINARY_VARYINGSQLType.BOOLEANSQLType.CHARACTERSQLType.CHARACTER_LARGE_OBJECTSQLType.CHARACTER_VARYINGSQLType.DATESQLType.DECIMALSQLType.DOUBLE_PRECISIONSQLType.FLOATSQLType.INTEGERSQLType.LANGUAGESQLType.NATIONAL_CHARACTERSQLType.NATIONAL_CHARACTER_LARGE_OBJECTSQLType.NATIONAL_CHARACTER_VARYINGSQLType.NUMERICSQLType.REALSQLType.SMALL_INTSQLType.TIMESQLType.TIMESTAMPSQLType.UNKNOWNSQLType.WORD
- doquedb.common.data module
BinaryDataWordDataWordData.termWordData.languageWordData.categoryWordData.scaleWordData.docfrequencyWordData.CATEGORY_ESSENTIALWordData.CATEGORY_ESSENTIAL_RELATEDWordData.CATEGORY_HELPFULWordData.CATEGORY_HELPFUL_RELATEDWordData.CATEGORY_IMPORTANTWordData.CATEGORY_IMPORTANT_RELATEDWordData.CATEGORY_PROHIBITIVEWordData.CATEGORY_PROHIBITIVE_RELATEDWordData.CATEGORY_UNDEFINEDWordData.categoryWordData.class_idWordData.clone()WordData.docfrequencyWordData.languageWordData.languagestrWordData.read_object()WordData.scaleWordData.termWordData.write_object()
- doquedb.common.instance module
- doquedb.common.iostream module
- doquedb.common.language module
- doquedb.common.scalardata module
- doquedb.common.serialdata module
ColumnMetaDataColumnMetaData.__typeColumnMetaData.__typenameColumnMetaData.__colnameColumnMetaData.__tablenameColumnMetaData.__dbnameColumnMetaData.__column_aliasnameColumnMetaData.__table_aliasnameColumnMetaData.__displaysizeColumnMetaData.__precisionColumnMetaData.__scaleColumnMetaData.__cardinalityColumnMetaData.__flagColumnMetaData.cardinalityColumnMetaData.class_idColumnMetaData.colnameColumnMetaData.column_aliasnameColumnMetaData.data_mapColumnMetaData.dbnameColumnMetaData.displaysizeColumnMetaData.flagColumnMetaData.get_datainstance()ColumnMetaData.get_datatype()ColumnMetaData.is_arrayColumnMetaData.is_autoincrementColumnMetaData.is_case_insensitiveColumnMetaData.is_readonlyColumnMetaData.is_uniqueColumnMetaData.is_unsignedColumnMetaData.isnot_nullableColumnMetaData.isnot_searchableColumnMetaData.precisionColumnMetaData.read_object()ColumnMetaData.scaleColumnMetaData.table_aliasnameColumnMetaData.tablenameColumnMetaData.typeColumnMetaData.typenameColumnMetaData.write_object()
ErrorLevelExceptionDataRequestStatus
- doquedb.common.serializable module
- doquedb.common.unicodestr module
- Module contents
- doquedb.driver package
- Submodules
- doquedb.driver.connection module
ConnectionConnection.infoConnection._sessionConnection.usernameConnection.passwordConnection.master_idConnection.charsetConnection.in_autocommitConnection.is_closedConnection.readonlyConnection.in_transactionConnection.isolation_levelConnection.begin_transaction()Connection.charsetConnection.close()Connection.commit()Connection.cursor()Connection.in_transactionConnection.infoConnection.is_autocommitConnection.isolation_levelConnection.isolevelConnection.master_idConnection.modeConnection.passwordConnection.readonlyConnection.rollback()Connection.set_readonly()Connection.set_transaction_isolation()Connection.username
TransactionIsolationLevelTransactionMode
- doquedb.driver.cursor module
CursorCursor.arraysizeCursor._rowcountCursor._descriptionCursor.__metadataCursor.__resultsetCursor.arraysizeCursor.callproc()Cursor.cancel()Cursor.close()Cursor.descriptionCursor.execute()Cursor.executemany()Cursor.fetchall()Cursor.fetchmany()Cursor.fetchone()Cursor.is_closedCursor.rowcountCursor.setinputsize()Cursor.setoutputsize()
CursorPrepared
- doquedb.driver.dbapi module
- Module contents
- doquedb.exception package
- Submodules
- doquedb.exception.database_exceptions module
AlreadyBeginTransactionAlreadyStartBackupArbitraryElementNotAllowedAreaAlreadyDefinedAreaNotFoundArrayRightTruncationAssertionFailedAuthorizationFailedBadArgumentBadArrayElementBadDataPageBadPasswordFileBadTransactionCancelCanceledBySuperUserCannotConnectCardinalityViolationCascadeAlreadyDefinedCascadeNotFoundCharacterNotInRepertoireClassCastClassNotFoundClientNotExistColumnAlreadyDefinedColumnLengthOutOfRangeColumnNotFoundColumnPrecisionOutOfRangeColumnScaleOutOfRangeCommonColumnNotFoundConnectionClosedConnectionNotExistConnectionRanOutConstraintAlreadyDefinedConstraintNotFoundCryptLibraryErrorDatabaseAlreadyDefinedDatabaseChangedDatabaseCorruptedDatabaseNotAvailableDatabaseNotFoundDatabaseNotMountableDeadlockDefaultNeededDiskFullDivisionByZeroDuplicateCommonColumnDuplicateIdentityDuplicateQualifiedNameDuplicateServerDuplicateUpdateColumnDuplicateUserDuplicateUserIDDuplicateVariableDynamicParameterNotMatchEntryNotFoundExceedDegreeFatalFileAlreadyExistedFileAlreadyOpenedFileManipulateErrorFileNotFoundFileNotOpenFlushPreventedForeignKeyViolationFullTextIndexNeededFunctionNotFoundGoingShutdownIllegalFileAccessIndexAlreadyDefinedIndexNotFoundIntegrityViolationInvalidAreaSpecificationInvalidBulkParameterInvalidCardinalityInvalidCascadeInvalidCharacterInvalidDataFileInvalidDatetimeFormatInvalidDefaultInvalidDerivedColumnInvalidDerivedNameInvalidElementReferenceInvalidEscapeInvalidEscapeSequenceInvalidExpandDegreeInvalidExpandLimitInvalidExpandOrderInvalidExplicitTransactionInvalidFullTextUsageInvalidFunctionInvalidIdentifierInvalidIndexKeyInvalidInsertSourceInvalidKwicInvalidLikeInvalidPartitionInvalidPathInvalidRankFromInvalidReferenceInvalidRegularExpressionInvalidRowValueInvalidSectionDataInvalidSetFunctionInvalidSimilarInvalidStatementIdentifierInvalidSubQueryInvalidSubstringOfInvalidUpdateColumnInvalidUserNameKeyAlreadyDefinedKeyNotFoundKwicWithoutContainsLackForChildLackOfParentLibraryNotFoundListFormatOverflowLockTimeoutLogFileCorruptedLogItemCorruptedLogItemNotFoundMemoryExhaustMetaDatabaseCorruptedModLibraryErrorNonCharacterInStringNonGroupingColumnNotBeginTransactionNotComparableNotCompatibleNotInitializedNotStartBackupNotSupportedNullNotAllowedNullabilityViolationNumericValueOutOfRangeOfflineDatabaseOtherDatabaseAlreadyModifiedOtherObjectDependingOuterReferenceNotAllowedPartitionAlreadyDefinedPartitionNotFoundPermissionDeniedPrepareFailedPreservedDifferentPagePrivilegeNotAllowedReadOnlyDatabaseReadOnlyPartitionReadOnlyTransactionRecoveryFailedReferedKeyViolationReorganizeFailedReplicationAbortedRoleNotFoundRunningCheckpointProcessingSQLSyntaxErrorSchemaObjectNotFoundSequenceLimitExceededServerNotAvailableSessionBusySessionNotAvailableSessionNotExistSnapshotDiscardedSpatialIndexNeededStoredFunctionAlreadyDefinedStoredFunctionNotFoundStoredFunctionUsedStringRightTruncationSubStringErrorSystemCallSystemTableTableAlreadyDefinedTableNotEmptyTableNotFoundTemporaryDatabaseTemporaryTableTimeStampFileCorruptedTooLongConditionalPatternTooLongObjectNameTooLongStatementTooLongUserNameTooManyExpandedPatternTooManyOpenFilesUnexpectedUniquenessViolationUnknownExceptionUnknownRequestUserIDOutOfRangeUserNotFoundUserRequiredVariableNotFoundVerifyAbortedWrongParameterXA_DuplicateIdentifierXA_HeurCommitXA_HeurMixXA_HeurRollbackXA_InsideActiveBranchXA_InvalidIdentifierXA_ProtocolErrorXA_UnknownIdentifier
- doquedb.exception.error_message module
- doquedb.exception.errorcode module
ErrorCodeErrorCode.AlreadyBeginTransactionErrorCode.AlreadyStartBackupErrorCode.ArbitraryElementNotAllowedErrorCode.AreaAlreadyDefinedErrorCode.AreaNotFoundErrorCode.ArrayRightTruncationErrorCode.AssertionFailedErrorCode.AuthorizationFailedErrorCode.BadArgumentErrorCode.BadArrayElementErrorCode.BadDataPageErrorCode.BadPasswordFileErrorCode.BadTransactionErrorCode.CancelErrorCode.CanceledBySuperUserErrorCode.CannotConnectErrorCode.CardinalityViolationErrorCode.CascadeAlreadyDefinedErrorCode.CascadeNotFoundErrorCode.CharacterNotInRepertoireErrorCode.ClassCastErrorCode.ClassNotFoundErrorCode.ClientNotExistErrorCode.ColumnAlreadyDefinedErrorCode.ColumnLengthOutOfRangeErrorCode.ColumnNotFoundErrorCode.ColumnPrecisionOutOfRangeErrorCode.ColumnScaleOutOfRangeErrorCode.CommonColumnNotFoundErrorCode.ConnectionClosedErrorCode.ConnectionNotExistErrorCode.ConnectionRanOutErrorCode.ConstraintAlreadyDefinedErrorCode.ConstraintNotFoundErrorCode.CryptLibraryErrorErrorCode.DatabaseAlreadyDefinedErrorCode.DatabaseChangedErrorCode.DatabaseCorruptedErrorCode.DatabaseNotAvailableErrorCode.DatabaseNotFoundErrorCode.DatabaseNotMountableErrorCode.DeadlockErrorCode.DefaultNeededErrorCode.DiskFullErrorCode.DivisionByZeroErrorCode.DuplicateCommonColumnErrorCode.DuplicateIdentityErrorCode.DuplicateQualifiedNameErrorCode.DuplicateServerErrorCode.DuplicateUpdateColumnErrorCode.DuplicateUserErrorCode.DuplicateUserIDErrorCode.DuplicateVariableErrorCode.DynamicParameterNotMatchErrorCode.EntryNotFoundErrorCode.ExceedDegreeErrorCode.FatalErrorCode.FileAlreadyExistedErrorCode.FileAlreadyOpenedErrorCode.FileManipulateErrorErrorCode.FileNotFoundErrorCode.FileNotOpenErrorCode.FlushPreventedErrorCode.ForeignKeyViolationErrorCode.FullTextIndexNeededErrorCode.FunctionNotFoundErrorCode.GoingShutdownErrorCode.IllegalFileAccessErrorCode.IndexAlreadyDefinedErrorCode.IndexNotFoundErrorCode.IntegrityViolationErrorCode.InvalidAreaSpecificationErrorCode.InvalidBulkParameterErrorCode.InvalidCardinalityErrorCode.InvalidCascadeErrorCode.InvalidCharacterErrorCode.InvalidDataFileErrorCode.InvalidDatetimeFormatErrorCode.InvalidDefaultErrorCode.InvalidDerivedColumnErrorCode.InvalidDerivedNameErrorCode.InvalidElementReferenceErrorCode.InvalidEscapeErrorCode.InvalidEscapeSequenceErrorCode.InvalidExpandDegreeErrorCode.InvalidExpandLimitErrorCode.InvalidExpandOrderErrorCode.InvalidExplicitTransactionErrorCode.InvalidFullTextUsageErrorCode.InvalidFunctionErrorCode.InvalidIdentifierErrorCode.InvalidIndexKeyErrorCode.InvalidInsertSourceErrorCode.InvalidKwicErrorCode.InvalidLikeErrorCode.InvalidPartitionErrorCode.InvalidPathErrorCode.InvalidRankFromErrorCode.InvalidReferenceErrorCode.InvalidRegularExpressionErrorCode.InvalidRowValueErrorCode.InvalidSectionDataErrorCode.InvalidSetFunctionErrorCode.InvalidSimilarErrorCode.InvalidStatementIdentifierErrorCode.InvalidSubQueryErrorCode.InvalidSubstringOfErrorCode.InvalidUpdateColumnErrorCode.InvalidUserNameErrorCode.KeyAlreadyDefinedErrorCode.KeyNotFoundErrorCode.KwicWithoutContainsErrorCode.LackForChildErrorCode.LackOfParentErrorCode.LibraryNotFoundErrorCode.ListFormatOverflowErrorCode.LockTimeoutErrorCode.LogFileCorruptedErrorCode.LogItemCorruptedErrorCode.LogItemNotFoundErrorCode.MemoryExhaustErrorCode.MetaDatabaseCorruptedErrorCode.ModLibraryErrorErrorCode.NonCharacterInStringErrorCode.NonGroupingColumnErrorCode.NotBeginTransactionErrorCode.NotComparableErrorCode.NotCompatibleErrorCode.NotInitializedErrorCode.NotStartBackupErrorCode.NotSupportedErrorCode.NullNotAllowedErrorCode.NullabilityViolationErrorCode.NumericValueOutOfRangeErrorCode.OfflineDatabaseErrorCode.OtherDatabaseAlreadyModifiedErrorCode.OtherObjectDependingErrorCode.OuterReferenceNotAllowedErrorCode.PartitionAlreadyDefinedErrorCode.PartitionNotFoundErrorCode.PermissionDeniedErrorCode.PrepareFailedErrorCode.PreservedDifferentPageErrorCode.PrivilegeNotAllowedErrorCode.ReadOnlyDatabaseErrorCode.ReadOnlyPartitionErrorCode.ReadOnlyTransactionErrorCode.RecoveryFailedErrorCode.ReferedKeyViolationErrorCode.ReorganizeFailedErrorCode.ReplicationAbortedErrorCode.RoleNotFoundErrorCode.RunningCheckpointProcessingErrorCode.SQLSyntaxErrorErrorCode.SchemaObjectNotFoundErrorCode.SequenceLimitExceededErrorCode.ServerNotAvailableErrorCode.SessionBusyErrorCode.SessionNotAvailableErrorCode.SessionNotExistErrorCode.SnapshotDiscardedErrorCode.SpatialIndexNeededErrorCode.StoredFunctionAlreadyDefinedErrorCode.StoredFunctionNotFoundErrorCode.StoredFunctionUsedErrorCode.StringRightTruncationErrorCode.SubStringErrorErrorCode.SystemCallErrorCode.SystemTableErrorCode.TableAlreadyDefinedErrorCode.TableNotEmptyErrorCode.TableNotFoundErrorCode.TemporaryDatabaseErrorCode.TemporaryTableErrorCode.TimeStampFileCorruptedErrorCode.TooLongConditionalPatternErrorCode.TooLongObjectNameErrorCode.TooLongStatementErrorCode.TooLongUserNameErrorCode.TooManyExpandedPatternErrorCode.TooManyOpenFilesErrorCode.UnexpectedErrorCode.UniquenessViolationErrorCode.UnknownExceptionErrorCode.UnknownRequestErrorCode.UserIDOutOfRangeErrorCode.UserNotFoundErrorCode.UserRequiredErrorCode.VariableNotFoundErrorCode.VerifyAbortedErrorCode.WrongParameterErrorCode.XA_DuplicateIdentifierErrorCode.XA_HeurCommitErrorCode.XA_HeurMixErrorCode.XA_HeurRollbackErrorCode.XA_InsideActiveBranchErrorCode.XA_InvalidIdentifierErrorCode.XA_ProtocolErrorErrorCode.XA_UnknownIdentifier
- doquedb.exception.exceptions module
- doquedb.exception.message_format_eg module
- doquedb.exception.message_format_jp module
- doquedb.exception.raise_error module
- Module contents
- doquedb.port package
- Submodules
- doquedb.port.authorizemode module
- doquedb.port.connection module
ConnectionConnection.__connection_typeConnection.__master_idConnection.__slave_idConnection._inputstreamConnection._outputstreamConnection.authorizationConnection.close()Connection.flush()Connection.master_idConnection.open()Connection.read_object()Connection.slave_idConnection.typeConnection.write_object()
RemoteClientConnection
- doquedb.port.constants module
- Module contents
Module contents
doquedb – DoqueDB接続用パッケージ
- doquedb.BINARY
alias of
bytes
- doquedb.Binary
alias of
bytes
- class doquedb.Connection(hostname: str, portnum: int, protocol_ver: int, session: Session, user: str | None, password: str | None, master_id: int, charset: str, autocommit: bool = False)
Bases:
objectDB-API 2.0 のコネクションクラス. 特定のデータベースとの接続 (セッション) を表現します。
- Parameters:
hostname (str) – ホスト名
portnum (int) – ポート番号
protocol_ver (int) – プロトコルバージョン
session (Session) – セッション
user (str) – ユーザー名
password (str) – パスワード
master_id (int) – マスターID
charset (str) – 文字セット
autocommit (bool) – オートコミットのオンオフ. デフォルトはFalse
- info
ホスト名、ポート番号、プロトコルバージョンのリスト
- Type:
list
- username
ユーザー名
- Type:
str
- password
パスワード
- Type:
str
- master_id
マスターID
- Type:
int
- charset
文字セット
- Type:
str
- in_autocommit
オートコミットのオンオフ
- Type:
bool
- is_closed
クローズしたかどうか
- Type:
bool
- readonly
読込み専用モードかどうか
- Type:
bool
- in_transaction
トランザクション中かどうか
- Type:
bool
- isolation_level
トランザクション遮断レベル
- Type:
bool
- begin_transaction(transaction_mode: int | None = None) None
トランザクションを開始する.
- Parameters:
transaction_mode –
- obj:
`TransactionMode`内のいずれかのトランザクションモード
Notes
このメソッドは自動コミットモードが無効の時にのみ使用する.
- property charset: str
文字コードのゲッター.
- close() None
セッションのクローズ
自動解除を待たずにDoqueDBとのセッションのクローズ処理を直ちに行う。
- commit() None
現在のトランザクションをコミットする.
- Raises:
ProgrammingError – プログラミングの誤りによって発生するエラー
InterfaceError – 通信プロトコル周りのエラー時に発生
- cursor(prepared: bool | None = False) Cursor
カーソルの生成
データベース操作のためのカーソルオブジェクトを生成する
- Parameters:
prepared (Optional[bool]) – プリペアードステートメント利用フラグ. デフォルトはFalse
- Returns:
カーソルオブジェクト
- Return type:
- Raises:
ProgrammingError – 複数のカーソルを作成しようとした場合に発生
Notes
カーソルはコネクションに対して1つしか作成できない。 複数のカーソルを同時に作成したい場合はコネクションを新しく生成する必要がある。
- property in_transaction: bool
トランザクションのオンオフのゲッター
- property info: tuple
接続情報(ホスト名, ポート番号, プロトコルバージョン)のタプル
- property is_autocommit: bool
オートコミットのオンオフのゲッター
- property isolation_level: int
“トランザクション遮断レベルのゲッター
- isolevel
alias of
TransactionIsolationLevel
- property master_id: int
マスターIDのゲッター
- mode
alias of
TransactionMode
- property password: str | None
パスワードのゲッター
- property readonly: bool
“読込み専用モードかどうか
- rollback() None
現在のトランザクションをロールバックする.
- Raises:
exceptions.InterfaceError – 通信プロトコル周りのエラー時に発生
- set_readonly(readonly_: bool) None
読込み専用モードをセットする.
- Parameters:
readonly (bool) – 読込み専用モードの設定値
- Raises:
- set_transaction_isolation(isolation_level: int) None
トランザクション遮断レベルを指定されたものに変更する.
- Parameters:
isolation_level (int) –
- obj:
`TransactionIsolationLevel`内のいずれかの定数値
- Raises:
- property username: str | None
ユーザー名のゲッター
- doquedb.DATETIME
alias of
datetime
- doquedb.DECIMAL
alias of
DecimalData
- exception doquedb.DataError(error_message)
Bases:
DatabaseErrorデータの処理に関連する例外
- Parameters:
error_message (str) – エラーの説明文
- error_message
エラーの説明文
- Type:
str
- exception doquedb.DatabaseError(error_message: str, state_code: str | None = None, error_code: int | None = None)
Bases:
Errorデータベースから取得した例外のベースとなる例外クラス
- Parameters:
error_message (str) – エラーの説明文
state_code (str) – SQLのステート
error_code (int) – エラーコード
- error_message
エラーの説明文
- Type:
str
- state_code
SQLのステート
- Type:
Optional[str]
- error_code
エラーコード
- Type:
Optional[int
- doquedb.Date
alias of
date
- doquedb.DateFromTicks(ticks)
- doquedb.Decimal
alias of
DecimalData
- exception doquedb.Error
Bases:
Exception警告以外の全ての例外クラスのベースとなる例外クラス
- exception doquedb.IntegrityError(error_message)
Bases:
DatabaseErrorデータベースのリレーションの整合性に関連する例外
- Parameters:
error_message (str) – エラーの説明文
- error_message
エラーの説明文
- Type:
str
- exception doquedb.InternalError(error_message)
Bases:
DatabaseErrorデータベースの内部エラーに関連する例外
- Parameters:
error_message (str) – エラーの説明文
- error_message
エラーの説明文
- Type:
str
- doquedb.LANGUAGE
alias of
LanguageData
- doquedb.Language
alias of
LanguageData
- doquedb.NUMBER
alias of
float
- exception doquedb.NotSupportedError(error_message)
Bases:
DatabaseErrorサポート外の機能に対する例外
- Parameters:
error_message (str) – エラーの説明文
- error_message
エラーの説明文
- Type:
str
- exception doquedb.OperationalError(error_message)
Bases:
DatabaseErrorデータベースのオペレーションに関連する例外
- Parameters:
error_message (str) – エラーの説明文
- error_message
エラーの説明文
- Type:
str
- exception doquedb.ProgrammingError(error_message)
Bases:
DatabaseErrorプログラミングエラーに関連する例外
- Parameters:
error_message (str) – エラーの説明文
- error_message
エラーの説明文
- Type:
str
- doquedb.ROWID
alias of
int
- doquedb.STRING
alias of
str
- doquedb.Time
alias of
time
- doquedb.TimeFromTicks(ticks)
- doquedb.Timestamp
alias of
datetime
- doquedb.TimestampFromTicks(ticks)
- exception doquedb.Warning
Bases:
Exception警告のための例外クラス
- doquedb.connect(host: str = 'localhost', port: int = 54321, user: str = None, password: str = None, dbname: str = 'DefaultDB', charset: str = 'utf8', autocommit: bool = False) Connection
DoqueDBと接続し, Connectionオブジェクトを返す.
- Parameters:
host (str) – ホスト名
port (int) – ポート番号
user (str) – ユーザー名
password (str) – パスワード
dbname (int) – データベース名
charset (str) – 文字セット
autocommit (bool) – オートコミット. デフォルトはFalse
- Returns:
Connectionオブジェクト
- Return type: