Skip to content

Commit a9fca92

Browse files
committed
Edit
1 parent 6c03fc8 commit a9fca92

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Blog/blog/2025-08-20-sea-query-1.0.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ The snippet above demonstrated:
383383
### Replaced `SERIAL` with `GENERATED BY DEFAULT AS IDENTITY` (Postgres)
384384

385385
[#918](https://github.com/SeaQL/sea-query/pull/918)
386+
`SERIAL` is deprecated in Postgres because identity column (`GENERATED AS IDENTITY`) is more modern and, for example, can avoid sequence number quirks.
386387

387388
```rust
388389
let table = Table::create()
@@ -398,8 +399,11 @@ assert_eq!(
398399
r#")"#,
399400
].join(" ")
400401
);
402+
```
403+
404+
If you need to support legacy systems you can still do:
401405

402-
// if you needed to support legacy system you can still do:
406+
```rust
403407
let table = Table::create()
404408
.table(Char::Table)
405409
.col(ColumnDef::new(Char::Id).custom("serial").not_null().primary_key())
@@ -483,6 +487,8 @@ sql.write_str(" ");
483487
### Refactor Writer to avoid string allocation
484488

485489
[#945](https://github.com/SeaQL/sea-query/pull/945)
490+
Less strings is better!
491+
486492
```rust
487493
// before: an intermediate string is allocated
488494
let value: String = self.value_to_string(value);

0 commit comments

Comments
 (0)