Skip to content

Instantly share code, notes, and snippets.

@auxesis
Created January 27, 2026 00:43
Show Gist options
  • Select an option

  • Save auxesis/cea73faf0a453e4ed001ca5102462ee6 to your computer and use it in GitHub Desktop.

Select an option

Save auxesis/cea73faf0a453e4ed001ca5102462ee6 to your computer and use it in GitHub Desktop.
type Users struct {
id uuid
email string `cs:indexes:["free_text_search","equality","order_and_range"]`
}
type Photos struct {
id uuid
created_at time.Time `cs:indexes:["equality","order_and_range"]`
}
client, err := protect.NewClient(Types: []{Users,Photos})
if err != nil {
log.Fatal(err)
}
defer client.Free()
- column: "users.email"
go_struct_tag: 'cs:indexes:["free_text_search","equality","order_and_range"]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment