Examples for

MariaDB

23 examples, in learning order. MySQL's grammar with MariaDB's RETURNING on INSERT and DELETE.

Seagull generates the same code for MariaDB as for MySQL, so most pages here show the MySQL files, tested against MariaDB.

Parameters
? or :name
RETURNING
On INSERT and DELETE only
Go code for
database/sql
Migrations
Built in (MySQL)
Driver
go-sql-driver/mysql
All about the MariaDB dialect

Getting started

4 examples

Types and nullability

3 examples

Dynamic queries

5 examples

Shaping results

4 examples

Writing data

3 examples

Connections and transactions

1 examples

Migrations and seeds

1 examples

Engine features

2 examples
Show 30 not available for MariaDB

Some ideas belong to other engines, and some need a feature MariaDB does not have. Each one says why, and where to read it instead.