MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / PGDialect

Class PGDialect

lib/sqlalchemy/dialects/postgresql/base.py:3442–5665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3440
3441
3442class PGDialect(default._BackendsMultiReflection, default.DefaultDialect):
3443 name = "postgresql"
3444 supports_statement_cache = True
3445 supports_alter = True
3446 max_identifier_length = 63
3447 supports_sane_rowcount = True
3448
3449 bind_typing = interfaces.BindTyping.RENDER_CASTS
3450
3451 supports_native_enum = True
3452 supports_native_boolean = True
3453 supports_native_uuid = True
3454 supports_smallserial = True
3455 supports_virtual_generated_columns = True
3456
3457 supports_sequences = True
3458 sequences_optional = True
3459 preexecute_autoincrement_sequences = True
3460 postfetch_lastrowid = False
3461 use_insertmanyvalues = True
3462
3463 returns_native_bytes = True
3464
3465 insertmanyvalues_implicit_sentinel = (
3466 InsertmanyvaluesSentinelOpts.ANY_AUTOINCREMENT
3467 | InsertmanyvaluesSentinelOpts.USE_INSERT_FROM_SELECT
3468 | InsertmanyvaluesSentinelOpts.RENDER_SELECT_COL_CASTS
3469 )
3470
3471 supports_comments = True
3472 supports_constraint_comments = True
3473 supports_default_values = True
3474
3475 supports_default_metavalue = True
3476
3477 supports_empty_insert = False
3478 supports_multivalues_insert = True
3479
3480 supports_identity_columns = True
3481
3482 default_paramstyle = "pyformat"
3483 ischema_names = ischema_names
3484 colspecs = colspecs
3485
3486 statement_compiler = PGCompiler
3487 ddl_compiler = PGDDLCompiler
3488 type_compiler_cls = PGTypeCompiler
3489 preparer = PGIdentifierPreparer
3490 execution_ctx_cls = PGExecutionContext
3491 inspector = PGInspector
3492
3493 update_returning = True
3494 delete_returning = True
3495 insert_returning = True
3496 update_returning_multifrom = True
3497 delete_returning_multifrom = True
3498
3499 connection_characteristics = (

Callers 5

init_classMethod · 0.90
test_arrayMethod · 0.90

Calls 4

unionMethod · 0.45
compileMethod · 0.45

Tested by 4

test_arrayMethod · 0.72