CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 00:32:33 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-robots-tag: none
etag: W/"f7277ffe38eb7cc3c4a67f60518de239"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=Lr6lNRGDCye3S7LtT4caTcjXXT3TNhk%2FFrEf%2Fhe0B4CDWkdg3bqNMNwq%2FDyAyoSwekpOBznFZa2ynjUEuo66mQLBMa2e59wr9VDUoUTTE05kfpgQHRE5XhFhF540%2FdzxcZs65iW39kjXERoNkiyax179bMmLUD3JUg5Pjh2kK4MNofLGvfPiilz5xQlLjf9Yw61Isa4biug29KQ9gGVywpaUpN%2BTQvRcI8Dh1uRqaEmulnJMTbx%2F2loAk1%2FjaCGCr5x1Qfdgcx3qB8BL0sd2TA%3D%3D--%2FRjiR88EAFO8Po0h--CsNJEweQqBuOChWkPVRJZQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1236982662.1753489953; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 00:32:33 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 00:32:33 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: ED10:3467EF:5A864:90F20:68842221
Go ReQL command reference · rethinkdb/rethinkdb-go Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 178
Go ReQL command reference
Daniel Cannon edited this page May 16, 2015
·
2 revisions
All ReQL queries begin from the top-level module.
- Connect - Connect creates a new database session. To view the available connection options see ConnectOpts.
- Close - Close closes the session
- Reconnect - Reconnect closes and re-opens a session.
- Run - Run runs a query using the given connection.
- RunWrite - RunWrite runs a query using the given connection but unlike Run automatically scans the result into a variable of type WriteResponss. This function should be used if you are running a write query (such as Insert, Update, TableCreate, etc...)
- Exec - Exec runs the query but does not return the result.
- NoReplyWait - NoReplyWait ensures that previous queries with the noreply flag have been processed by the server. Note that this guarantee only applies to queries run on the given connection.
- Next - Next retrieves the next document from the result set, blocking if necessary.
- All - All retrieves all documents from the result set into the provided slice and closes the cursor.
- One - One retrieves a single document from the result set into the provided slice and closes the cursor.
- Listen - Listen listens for rows from the database and sends the result onto the given channel
- IsNil - IsNil tests if the current row is nil.
- Err - Err returns nil if no errors happened during iteration, or the actual error otherwise.
- Close - Close closes the cursor, preventing further enumeration.
- TableCreate
- TableDrop
- TableList
- IndexCreate
- IndexDrop
- IndexList
- IndexRename
- IndexStatus
- IndexWait
- Changes
- Group
- MutliGroup
- GroupByIndex
- MutliGroupByIndex
- Ungroup
- Reduce
- Count
- Sum
- Avg
- Min
- Max
- Distinct
- Contains
- Row - Returns the currently visited document.
-
Field - Get a single field from an object. (equivalent to
()
in the JS driver) - Pluck
- Without
- Merge
- Append
- Prepend
- Difference
- SetInsert
- SetUnion
- SetDifference
- HasFields
- InsertAt
- SpliceAt
- DeleteAt
- ChangeAt
- Keys
- Literal
- Object
- Now
- Time
- EpochTime
- ISO8601
- InTimezone
- Timezone
- During
- Date
- TimeOfDay
- Year
- Month
- Day
- DayOfWeek
- DayOfYear
- Hours
- Minutes
- Seconds
- ToISO8601
- ToEpochTime
-
Args -
Args
is a special term that’s used to splice an array of arguments into another term. - Binary - Encapsulate binary data within a query.
- Do - Call an anonymous function using return values from other ReQL commands or queries as arguments.
- Branch - Evaluate one of two control paths based on the value of an expression.
- ForEach - Loop over a sequence, evaluating the given write query for each element.
- Range - Generate a stream of sequential integers in a specified range.
- Error - Throw a runtime error.
- Default - Handle non-existence errors.
- Expr - Construct a ReQL JSON value from a native type.
- JS - Create a javascript expression.
- CoerceTo - Convert a value of one type into another.
- TypeOf - Gets the type of a value.
- Info - Get information about a ReQL value.
- JSON - Parse a JSON string on the server.
- ToJSON - Convert a ReQL value or object to a JSON string.
- HTTP - Retrieve data from the specified URL over HTTP.
- UUID - Return a UUID (universally unique identifier), a string that can be used as a unique ID.
- Circle - Construct a circular line or polygon.
- Distance - Compute the distance between a point and another geometry object.
- Fill - Convert a Line object into a Polygon object.
- GeoJSON - Convert a GeoJSON object to a ReQL geometry object.
- ToGeoJSON - Convert a ReQL geometry object to a GeoJSON object.
- GetIntersecting - Get all documents where the given geometry object intersects the geometry object of the requested geospatial index.
- GetNearest - Get all documents where the specified geospatial index is within a certain distance of the specified point (default 100 kilometers).
- Includes - Tests whether a geometry object is completely contained within another.
- Intersects - Tests whether two geometry objects intersect with one another.
- Line - Construct a geometry object of type Line.
- Point - Construct a geometry object of type Point.
- Polygon - Construct a geometry object of type Polygon.
- PolygonSub - Use polygon2 to “punch out” a hole in polygon1.
You can’t perform that action at this time.