Created
January 27, 2026 00:43
-
-
Save auxesis/cea73faf0a453e4ed001ca5102462ee6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - 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