Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 316 Bytes

arrays.md

File metadata and controls

21 lines (17 loc) · 316 Bytes

Arrays

CREATE TABLE places (
  name text   not null,
  tags text[]
);

PostgreSQL arrays are materialized as Go slices. Currently, only one-dimensional arrays are supported.

package db

type Place struct {
	Name string
	Tags []string
}