Skip to main content

Installation

Module​

go get github.com/izetmolla/datatable

Import paths:

import (
"github.com/izetmolla/datatable"
"github.com/izetmolla/datatable/postgresql"
"github.com/izetmolla/datatable/adapters/fiberv3query"
)

Local replace (monorepo)​

// go.mod
replace github.com/izetmolla/datatable => ../../pkg/datatable

Dependencies​

  • GORM — used by postgresql.Find / FindRaw
  • Fiber v3 — only required if you use adapters/fiberv3query
  • PostgreSQL — primary target (unaccent, JSONB helpers)

Database extension​

Text filters rely on accent-insensitive matching:

CREATE EXTENSION IF NOT EXISTS unaccent;

Without it, ILIKE paths may error at query time. Surface a clear setup hint in your list handler when detecting missing-extension errors.

Verify​

cd backend/pkg/datatable
go test ./... -count=1