1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
//! Attribute markers for PostgresTable derive macro.
//!
//! These const markers are used within `#[column(...)]` and `#[PostgresTable(...)]`
//! attributes. Import them from the prelude to get IDE hover documentation.
//!
//! # Example
//! ```ignore
//! # use drizzle::postgres::prelude::*;
//!
//! #[PostgresTable(NAME = "users")]
//! struct User {
//! #[column(PRIMARY, SERIAL)]
//! id: i32,
//! #[column(UNIQUE)]
//! email: String,
//! metadata: String,
//! }
//! ```
/// Marker struct for column constraint attributes.
;
//------------------------------------------------------------------------------
// Primary Key Constraints
//------------------------------------------------------------------------------
/// Marks this column as the PRIMARY KEY.
///
/// ## Example
/// ```ignore
/// #[column(PRIMARY)]
/// id: i32,
/// ```
///
/// See: <https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-PRIMARY-KEYS>
pub const PRIMARY: ColumnMarker = ColumnMarker;
/// Alias for [`PRIMARY`].
pub const PRIMARY_KEY: ColumnMarker = ColumnMarker;
//------------------------------------------------------------------------------
// Auto-increment Types
//------------------------------------------------------------------------------
/// Creates a SERIAL column (auto-incrementing 32-bit integer).
///
/// ## Example
/// ```ignore
/// #[column(PRIMARY, SERIAL)]
/// id: i32,
/// ```
///
/// See: <https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-SERIAL>
pub const SERIAL: ColumnMarker = ColumnMarker;
/// Creates a BIGSERIAL column (auto-incrementing 64-bit integer).
///
/// ## Example
/// ```ignore
/// #[column(PRIMARY, BIGSERIAL)]
/// id: i64,
/// ```
///
/// See: <https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-SERIAL>
pub const BIGSERIAL: ColumnMarker = ColumnMarker;
/// Creates a SMALLSERIAL column (auto-incrementing 16-bit integer).
///
/// ## Example
/// ```ignore
/// #[column(PRIMARY, SMALLSERIAL)]
/// id: i16,
/// ```
///
/// See: <https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-SERIAL>
pub const SMALLSERIAL: ColumnMarker = ColumnMarker;
//------------------------------------------------------------------------------
// Uniqueness Constraints
//------------------------------------------------------------------------------
/// Adds a UNIQUE constraint to this column.
///
/// ## Example
/// ```ignore
/// #[column(UNIQUE)]
/// email: String,
/// ```
///
/// See: <https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-UNIQUE-CONSTRAINTS>
pub const UNIQUE: ColumnMarker = ColumnMarker;
//------------------------------------------------------------------------------
// Identity Columns
//------------------------------------------------------------------------------
/// Creates a GENERATED IDENTITY column with configurable mode.
///
/// ## Syntax
/// - `identity(always)` - User values rejected unless OVERRIDING SYSTEM VALUE
/// - `identity(by_default)` - User values take precedence
///
/// ## Example
/// ```ignore
/// // GENERATED ALWAYS AS IDENTITY - strictest mode
/// #[column(identity(always), primary)]
/// id: i64,
///
/// // GENERATED BY DEFAULT AS IDENTITY - allows override
/// #[column(identity(by_default), primary)]
/// id: i64,
/// ```
///
/// ## Technical Details
/// PostgreSQL's identity columns are SQL-standard compliant, unlike SERIAL.
/// Use ALWAYS for auto-generated IDs, BY DEFAULT when you need to occasionally set values.
///
/// See: <https://www.postgresql.org/docs/current/ddl-identity-columns.html>
pub const IDENTITY: ColumnMarker = ColumnMarker;
/// Marks a column as a GENERATED AS (expression) column.
///
/// ## Syntax
/// - `generated(stored, "expression")` - Computed on write, stored on disk
/// - `generated(virtual, "expression")` - Computed on read, not stored (PostgreSQL 17+)
///
/// ## Example
/// ```ignore
/// #[column(generated(stored, "price * quantity"))]
/// total: i32,
///
/// #[column(generated(virtual, "first_name || ' ' || last_name"))]
/// full_name: String,
/// ```
///
/// ## Technical Details
/// Generated columns cannot be written to directly.
/// STORED columns are computed and stored on write.
/// VIRTUAL columns are computed on read (PostgreSQL 17+).
///
/// See: <https://www.postgresql.org/docs/current/ddl-generated-columns.html>
pub const GENERATED: ColumnMarker = ColumnMarker;
//------------------------------------------------------------------------------
// Serialization Modes
//------------------------------------------------------------------------------
/// Enables JSON serialization with JSON type storage.
///
/// ## Example
/// ```ignore
/// #[column(JSON)]
/// metadata: UserMetadata,
/// ```
///
/// Requires the `serde` feature. The field type must implement `Serialize` and `Deserialize`.
///
/// See: <https://www.postgresql.org/docs/current/datatype-json.html>
pub const JSON: ColumnMarker = ColumnMarker;
/// Enables JSON serialization with JSONB storage.
///
/// ## Example
/// ```ignore
/// #[column(JSONB)]
/// config: AppConfig,
/// ```
///
/// JSONB is the recommended JSON storage format for most use cases.
/// It supports indexing and efficient querying.
///
/// Requires the `serde` feature. The field type must implement `Serialize` and `Deserialize`.
///
/// See: <https://www.postgresql.org/docs/current/datatype-json.html>
pub const JSONB: ColumnMarker = ColumnMarker;
/// Marks this column as storing an enum type.
///
/// ## Example
/// ```ignore
/// #[column(ENUM)]
/// role: Role,
/// ```
///
/// For PostgreSQL native ENUM types or text-based enum storage.
///
/// See: <https://www.postgresql.org/docs/current/datatype-enum.html>
pub const ENUM: ColumnMarker = ColumnMarker;
//------------------------------------------------------------------------------
// Default Value Parameters
//------------------------------------------------------------------------------
/// Specifies a function to generate default values at runtime.
///
/// The function is called for each insert when no value is provided.
///
/// ## Example
/// ```ignore
/// #[column(DEFAULT_FN = Uuid::new_v4)]
/// id: Uuid,
/// ```
///
/// ## Difference from DEFAULT
/// - `DEFAULT_FN`: Calls the function at runtime for each insert (e.g., UUID generation)
/// - `DEFAULT`: Uses a fixed compile-time value
pub const DEFAULT_FN: ColumnMarker = ColumnMarker;
/// Specifies a fixed default value for new rows.
///
/// ## Example
/// ```ignore
/// #[column(DEFAULT = 0)]
/// count: i32,
///
/// #[column(DEFAULT = "guest")]
/// role: String,
/// ```
///
/// For runtime-generated values (UUIDs, timestamps), use [`DEFAULT_FN`] instead.
///
/// See: <https://www.postgresql.org/docs/current/ddl-default.html>
pub const DEFAULT: ColumnMarker = ColumnMarker;
/// Establishes a foreign key reference to another table's column.
///
/// ## Example
/// ```ignore
/// #[column(REFERENCES = User::id)]
/// user_id: i32,
/// ```
///
/// See: <https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-FK>
pub const REFERENCES: ColumnMarker = ColumnMarker;
/// Specifies the ON DELETE action for foreign key references.
///
/// ## Example
/// ```ignore
/// #[column(REFERENCES = User::id, ON_DELETE = CASCADE)]
/// user_id: i32,
/// ```
///
/// ## Supported Actions
/// - `CASCADE`: Delete rows that reference the deleted row
/// - `SET_NULL`: Set the column to NULL when referenced row is deleted
/// - `SET_DEFAULT`: Set the column to its default value
/// - `RESTRICT`: Prevent deletion if referenced
/// - `NO_ACTION`: Similar to RESTRICT (default)
///
/// See: <https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-FK>
pub const ON_DELETE: ColumnMarker = ColumnMarker;
/// Specifies the ON UPDATE action for foreign key references.
///
/// ## Example
/// ```ignore
/// #[column(REFERENCES = User::id, ON_UPDATE = CASCADE)]
/// user_id: i32,
/// ```
///
/// ## Supported Actions
/// - `CASCADE`: Update referencing rows when referenced row is updated
/// - `SET_NULL`: Set the column to NULL when referenced row is updated
/// - `SET_DEFAULT`: Set the column to its default value
/// - `RESTRICT`: Prevent update if referenced
/// - `NO_ACTION`: Similar to RESTRICT (default)
///
/// See: <https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-FK>
pub const ON_UPDATE: ColumnMarker = ColumnMarker;
//------------------------------------------------------------------------------
// Referential Action Values
//------------------------------------------------------------------------------
/// Type alias for referential action markers (uses ColumnMarker for macro compatibility).
pub type ReferentialAction = ColumnMarker;
/// CASCADE action: Propagate the delete/update to referencing rows.
///
/// ## Example
/// ```ignore
/// #[column(REFERENCES = User::id, ON_DELETE = CASCADE)]
/// user_id: i32,
/// ```
///
/// See: <https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-FK>
pub const CASCADE: ColumnMarker = ColumnMarker;
/// SET NULL action: Set referencing columns to NULL.
///
/// ## Example
/// ```ignore
/// #[column(REFERENCES = User::id, ON_DELETE = SET_NULL)]
/// user_id: Option<i32>,
/// ```
///
/// See: <https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-FK>
pub const SET_NULL: ColumnMarker = ColumnMarker;
/// SET DEFAULT action: Set referencing columns to their default values.
///
/// ## Example
/// ```ignore
/// #[column(REFERENCES = User::id, ON_DELETE = SET_DEFAULT, DEFAULT = 0)]
/// user_id: i32,
/// ```
///
/// See: <https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-FK>
pub const SET_DEFAULT: ColumnMarker = ColumnMarker;
/// RESTRICT action: Prevent delete/update if referenced.
///
/// ## Example
/// ```ignore
/// #[column(REFERENCES = User::id, ON_DELETE = RESTRICT)]
/// user_id: i32,
/// ```
///
/// See: <https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-FK>
pub const RESTRICT: ColumnMarker = ColumnMarker;
/// NO ACTION action: Similar to RESTRICT (default behavior).
///
/// ## Example
/// ```ignore
/// #[column(REFERENCES = User::id, ON_DELETE = NO_ACTION)]
/// user_id: i32,
/// ```
///
/// See: <https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-FK>
pub const NO_ACTION: ColumnMarker = ColumnMarker;
/// Adds a CHECK constraint to this column.
///
/// ## Example
/// ```ignore
/// #[column(CHECK = "age >= 0")]
/// age: i32,
/// ```
///
/// See: <https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-CHECK-CONSTRAINTS>
pub const CHECK: ColumnMarker = ColumnMarker;
//------------------------------------------------------------------------------
// Name Marker (shared by column and table attributes)
//------------------------------------------------------------------------------
/// Marker struct for the NAME attribute.
;
/// Specifies a custom name in the database.
///
/// By default, table, view, and column names are automatically converted to snake_case
/// from the Rust struct/field name. Use NAME to override this behavior.
///
/// ## Column Example
/// ```ignore
/// // Field `createdAt` becomes `created_at` by default
/// created_at: DateTime<Utc>,
///
/// // Override with custom name:
/// #[column(NAME = "creation_timestamp")]
/// created_at: DateTime<Utc>,
/// ```
///
/// ## Table Example
/// ```ignore
/// // Struct `UserAccount` becomes table `user_account` by default
/// struct UserAccount { ... }
///
/// // Override with custom name:
/// #[PostgresTable(NAME = "user_accounts")]
/// struct UserAccount { ... }
/// ```
///
/// ## View Example
/// ```ignore
/// #[PostgresView(NAME = "active_users")]
/// struct ActiveUsers { ... }
/// ```
pub const NAME: NameMarker = NameMarker;
//------------------------------------------------------------------------------
// View Attribute Markers
//------------------------------------------------------------------------------
/// Marker struct for view attributes.
;
/// Specifies a view definition SQL string or expression.
///
/// ## Examples
/// ```ignore
/// #[PostgresView(DEFINITION = "SELECT id, name FROM users")]
/// struct UserNames { id: i32, name: String }
/// ```
///
/// ```ignore
/// #[PostgresView(
/// DEFINITION = {
/// let builder = drizzle::postgres::QueryBuilder::new::<Schema>();
/// let Schema { user } = Schema::new();
/// builder.select((user.id, user.name)).from(user)
/// }
/// )]
/// struct UserNames { id: i32, name: String }
/// ```
pub const DEFINITION: ViewMarker = ViewMarker;
/// Specifies a view schema name.
///
/// ## Example
/// ```ignore
/// #[PostgresView(SCHEMA = "auth")]
/// struct AuthUsers { ... }
/// ```
pub const SCHEMA: ViewMarker = ViewMarker;
/// Marks the view as materialized.
///
/// ## Example
/// ```ignore
/// #[PostgresView(MATERIALIZED)]
/// struct ActiveUsers { ... }
/// ```
pub const MATERIALIZED: ViewMarker = ViewMarker;
/// Sets WITH options for a view definition.
///
/// ## Example
/// ```ignore
/// #[PostgresView(WITH = ViewWithOptionDef::new().security_barrier())]
/// struct ActiveUsers { ... }
/// ```
pub const WITH: ViewMarker = ViewMarker;
/// Alias for [`WITH`].
pub const WITH_OPTIONS: ViewMarker = ViewMarker;
/// Create a materialized view WITH NO DATA.
///
/// ## Example
/// ```ignore
/// #[PostgresView(MATERIALIZED, WITH_NO_DATA)]
/// struct ActiveUsers { ... }
/// ```
pub const WITH_NO_DATA: ViewMarker = ViewMarker;
/// Specifies a USING clause for materialized views.
///
/// ## Example
/// ```ignore
/// #[PostgresView(USING = "heap")]
/// struct ActiveUsers { ... }
/// ```
pub const USING: ViewMarker = ViewMarker;
/// Marks the view as existing (skip creation).
///
/// ## Example
/// ```ignore
/// #[PostgresView(EXISTING)]
/// struct ExistingView { ... }
/// ```
pub const EXISTING: ViewMarker = ViewMarker;
//------------------------------------------------------------------------------
// Table Attribute Markers
//------------------------------------------------------------------------------
/// Marker struct for table-level attributes.
;
/// Creates an UNLOGGED table.
///
/// ## Example
/// ```ignore
/// # use drizzle::postgres::prelude::*;
///
/// #[PostgresTable(UNLOGGED)]
/// struct SessionCache {
/// #[column(PRIMARY)]
/// key: String,
/// data: String,
/// }
/// ```
///
/// Unlogged tables are faster but data is not crash-safe.
///
/// See: <https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-UNLOGGED>
pub const UNLOGGED: TableMarker = TableMarker;
/// Creates a TEMPORARY table.
///
/// ## Example
/// ```ignore
/// # use drizzle::postgres::prelude::*;
///
/// #[PostgresTable(TEMPORARY)]
/// struct TempData {
/// id: i32,
/// value: String,
/// }
/// ```
///
/// Temporary tables exist only for the current session.
///
/// See: <https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-TEMPORARY>
pub const TEMPORARY: TableMarker = TableMarker;
/// Specifies inheritance from a parent table.
///
/// ## Example
/// ```ignore
/// # use drizzle::postgres::prelude::*;
///
/// #[PostgresTable(INHERITS = "base_table")]
/// struct ChildTable {
/// extra_field: String,
/// }
/// ```
///
/// See: <https://www.postgresql.org/docs/current/ddl-inherit.html>
pub const INHERITS: TableMarker = TableMarker;
/// Specifies a tablespace for the table.
///
/// ## Example
/// ```ignore
/// # use drizzle::postgres::prelude::*;
///
/// #[PostgresTable(TABLESPACE = "fast_storage")]
/// struct HighPerfTable {
/// #[column(PRIMARY)]
/// id: i32,
/// }
///
/// #[PostgresView(MATERIALIZED, TABLESPACE = "fast_storage")]
/// struct ActiveUsers { id: i32 }
/// ```
///
/// See: <https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-TABLESPACE>
pub const TABLESPACE: TableMarker = TableMarker;
//------------------------------------------------------------------------------
// Column Type Markers
//------------------------------------------------------------------------------
/// Marker struct for column type attributes.
;
//--- Character Types ---
/// Specifies a TEXT column type.
///
/// TEXT stores variable-length character strings with no length limit.
///
/// See: <https://www.postgresql.org/docs/current/datatype-character.html>
pub const TEXT: TypeMarker = TypeMarker;
/// Specifies a VARCHAR column type.
///
/// VARCHAR stores variable-length character strings.
/// In PostgreSQL, VARCHAR without length limit is equivalent to TEXT.
///
/// See: <https://www.postgresql.org/docs/current/datatype-character.html>
pub const VARCHAR: TypeMarker = TypeMarker;
/// Alias for VARCHAR.
pub const CHARACTER_VARYING: TypeMarker = TypeMarker;
/// Specifies a CHAR column type.
///
/// CHAR stores fixed-length character strings.
///
/// See: <https://www.postgresql.org/docs/current/datatype-character.html>
pub const CHAR: TypeMarker = TypeMarker;
/// Alias for CHAR.
pub const CHARACTER: TypeMarker = TypeMarker;
//--- Integer Types ---
/// Specifies an INTEGER column type (32-bit).
///
/// INTEGER (or INT4) stores 32-bit signed integers.
///
/// See: <https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-INT>
pub const INTEGER: TypeMarker = TypeMarker;
/// Alias for INTEGER.
pub const INT: TypeMarker = TypeMarker;
/// Alias for INTEGER.
pub const INT4: TypeMarker = TypeMarker;
/// Specifies a BIGINT column type (64-bit).
///
/// BIGINT (or INT8) stores 64-bit signed integers.
///
/// See: <https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-INT>
pub const BIGINT: TypeMarker = TypeMarker;
/// Alias for BIGINT.
pub const INT8: TypeMarker = TypeMarker;
/// Specifies a SMALLINT column type (16-bit).
///
/// SMALLINT (or INT2) stores 16-bit signed integers.
///
/// See: <https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-INT>
pub const SMALLINT: TypeMarker = TypeMarker;
/// Alias for SMALLINT.
pub const INT2: TypeMarker = TypeMarker;
//--- Floating Point Types ---
/// Specifies a REAL column type (32-bit float).
///
/// REAL (or FLOAT4) stores 32-bit floating point numbers.
///
/// See: <https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-FLOAT>
pub const REAL: TypeMarker = TypeMarker;
/// Alias for REAL.
pub const FLOAT4: TypeMarker = TypeMarker;
/// Specifies a DOUBLE PRECISION column type (64-bit float).
///
/// DOUBLE PRECISION (or FLOAT8) stores 64-bit floating point numbers.
///
/// See: <https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-FLOAT>
pub const DOUBLE_PRECISION: TypeMarker = TypeMarker;
/// Alias for DOUBLE PRECISION.
pub const FLOAT8: TypeMarker = TypeMarker;
/// Alias for DOUBLE PRECISION.
pub const DOUBLE: TypeMarker = TypeMarker;
/// Specifies a NUMERIC column type (arbitrary precision).
///
/// NUMERIC stores exact numbers with arbitrary precision.
///
/// See: <https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-NUMERIC-DECIMAL>
pub const NUMERIC: TypeMarker = TypeMarker;
/// Alias for NUMERIC.
pub const DECIMAL: TypeMarker = TypeMarker;
//--- Boolean Type ---
/// Specifies a BOOLEAN column type.
///
/// BOOLEAN stores true/false values.
///
/// See: <https://www.postgresql.org/docs/current/datatype-boolean.html>
pub const BOOLEAN: TypeMarker = TypeMarker;
/// Alias for BOOLEAN.
pub const BOOL: TypeMarker = TypeMarker;
//--- Binary Type ---
/// Specifies a BYTEA column type (binary data).
///
/// BYTEA stores variable-length binary strings.
///
/// See: <https://www.postgresql.org/docs/current/datatype-binary.html>
pub const BYTEA: TypeMarker = TypeMarker;
//--- UUID Type ---
/// Specifies a UUID column type.
///
/// UUID stores universally unique identifiers.
/// Requires the `uuid` feature.
///
/// See: <https://www.postgresql.org/docs/current/datatype-uuid.html>
pub const UUID: TypeMarker = TypeMarker;
//--- Date/Time Types ---
/// Specifies a TIMESTAMP column type (without timezone).
///
/// TIMESTAMP stores date and time without timezone.
///
/// See: <https://www.postgresql.org/docs/current/datatype-datetime.html>
pub const TIMESTAMP: TypeMarker = TypeMarker;
/// Alias for TIMESTAMP.
pub const TIMESTAMP_WITHOUT_TIME_ZONE: TypeMarker = TypeMarker;
/// Specifies a TIMESTAMPTZ column type (with timezone).
///
/// TIMESTAMPTZ stores date and time with timezone.
///
/// See: <https://www.postgresql.org/docs/current/datatype-datetime.html>
pub const TIMESTAMPTZ: TypeMarker = TypeMarker;
/// Alias for TIMESTAMPTZ.
pub const TIMESTAMP_WITH_TIME_ZONE: TypeMarker = TypeMarker;
/// Specifies a DATE column type.
///
/// DATE stores calendar dates without time.
///
/// See: <https://www.postgresql.org/docs/current/datatype-datetime.html>
pub const DATE: TypeMarker = TypeMarker;
/// Specifies a TIME column type (without timezone).
///
/// TIME stores time of day without date or timezone.
///
/// See: <https://www.postgresql.org/docs/current/datatype-datetime.html>
pub const TIME: TypeMarker = TypeMarker;
/// Alias for TIME.
pub const TIME_WITHOUT_TIME_ZONE: TypeMarker = TypeMarker;
/// Specifies a TIMETZ column type (with timezone).
///
/// TIMETZ stores time of day with timezone.
///
/// See: <https://www.postgresql.org/docs/current/datatype-datetime.html>
pub const TIMETZ: TypeMarker = TypeMarker;
/// Alias for TIMETZ.
pub const TIME_WITH_TIME_ZONE: TypeMarker = TypeMarker;
/// Specifies an INTERVAL column type.
///
/// INTERVAL stores time intervals.
/// Requires the `chrono` feature.
///
/// See: <https://www.postgresql.org/docs/current/datatype-datetime.html>
pub const INTERVAL: TypeMarker = TypeMarker;
//--- Network Address Types ---
/// Specifies an INET column type.
///
/// INET stores IPv4 or IPv6 host addresses.
/// Requires the `cidr` feature.
///
/// See: <https://www.postgresql.org/docs/current/datatype-net-types.html>
pub const INET: TypeMarker = TypeMarker;
/// Specifies a CIDR column type.
///
/// CIDR stores IPv4 or IPv6 network addresses.
/// Requires the `cidr` feature.
///
/// See: <https://www.postgresql.org/docs/current/datatype-net-types.html>
pub const CIDR: TypeMarker = TypeMarker;
/// Specifies a MACADDR column type.
///
/// MACADDR stores MAC addresses.
/// Requires the `cidr` feature.
///
/// See: <https://www.postgresql.org/docs/current/datatype-net-types.html>
pub const MACADDR: TypeMarker = TypeMarker;
/// Specifies a MACADDR8 column type.
///
/// MACADDR8 stores EUI-64 MAC addresses.
/// Requires the `cidr` feature.
///
/// See: <https://www.postgresql.org/docs/current/datatype-net-types.html>
pub const MACADDR8: TypeMarker = TypeMarker;
//--- Geometric Types ---
/// Specifies a POINT column type.
///
/// POINT stores geometric points.
/// Requires the `geo-types` feature.
///
/// See: <https://www.postgresql.org/docs/current/datatype-geometric.html>
pub const POINT: TypeMarker = TypeMarker;
/// Specifies a LINE column type.
///
/// LINE stores infinite geometric lines.
/// Requires the `geo-types` feature.
///
/// See: <https://www.postgresql.org/docs/current/datatype-geometric.html>
pub const LINE: TypeMarker = TypeMarker;
/// Specifies a LSEG column type.
///
/// LSEG stores geometric line segments.
/// Requires the `geo-types` feature.
///
/// See: <https://www.postgresql.org/docs/current/datatype-geometric.html>
pub const LSEG: TypeMarker = TypeMarker;
/// Specifies a BOX column type.
///
/// BOX stores geometric boxes.
/// Requires the `geo-types` feature.
///
/// See: <https://www.postgresql.org/docs/current/datatype-geometric.html>
pub const BOX: TypeMarker = TypeMarker;
/// Specifies a PATH column type.
///
/// PATH stores geometric paths.
/// Requires the `geo-types` feature.
///
/// See: <https://www.postgresql.org/docs/current/datatype-geometric.html>
pub const PATH: TypeMarker = TypeMarker;
/// Specifies a POLYGON column type.
///
/// POLYGON stores geometric polygons.
/// Requires the `geo-types` feature.
///
/// See: <https://www.postgresql.org/docs/current/datatype-geometric.html>
pub const POLYGON: TypeMarker = TypeMarker;
/// Specifies a CIRCLE column type.
///
/// CIRCLE stores geometric circles.
/// Requires the `geo-types` feature.
///
/// See: <https://www.postgresql.org/docs/current/datatype-geometric.html>
pub const CIRCLE: TypeMarker = TypeMarker;
//--- Bit String Types ---
/// Specifies a BIT column type.
///
/// BIT stores fixed-length bit strings.
/// Requires the `bit-vec` feature.
///
/// See: <https://www.postgresql.org/docs/current/datatype-bit.html>
pub const BIT: TypeMarker = TypeMarker;
/// Specifies a VARBIT column type.
///
/// VARBIT (BIT VARYING) stores variable-length bit strings.
/// Requires the `bit-vec` feature.
///
/// See: <https://www.postgresql.org/docs/current/datatype-bit.html>
pub const VARBIT: TypeMarker = TypeMarker;
/// Alias for VARBIT.
pub const BIT_VARYING: TypeMarker = TypeMarker;