Writing Queries Design Scan and Exec bun.IDB Scanning rows Scanonly Ignoring unknown columns Writing Queries Design Bun’s goal is to help you write idiomatic SQL, not to ...
PostgreSQL Table Partitioning Why partition a table? Partitioning methods Partition by range Partition by list Partition by hash Managing partitions Using partitioned tables ...
PostgreSQL: Generating UUID primary keys What is UUID? When to use UUIDs? UUID in PostgreSQL UUID in Go Generating UUIDs Using UUIDs in models PostgreSQL: Generating UUID ...
Extending Bun with custom types sql.Scanner driver.Valuer Conclusion Extending Bun with custom types Bun uses database/sql to work with different DBMS and so you can extend i...
Golang ORM Performance and Errors Monitoring What is OpenTelemetry? OpenTelemetry instrumentaton Uptrace Prometheus See also Golang ORM Performance and Errors Monitoring W...
Logging queries bundebug Logrus hook Logging queries bundebug For quick debugging, you can print executed queries to stdout. First, you need to install bundebug package: go...
Delete rows [PostgreSQL MySQL] API Example Bulk-delete DELETE … USING Delete rows [PostgreSQL MySQL] API For the full list of supported methods, see DeleteQueryopen in new ...
Update [PostgreSQL MySQL] API Example Bulk-update Maps Omit zero values FQN Update [PostgreSQL MySQL] API For the full list of supported methods, see API referenceopen in...
PostgreSQL data types timestamptz vs timestamp JSONB Arrays UUID See also PostgreSQL data types timestamptz vs timestamp TLDR You should prefer using timestamptz over ti...