Functions
SurrealDB comes with a large number of in-built functions for checking, manipulating, and working with many different types of data. These functions are grouped into a number of different packages, which can be seen below.
Array functions
Functions for working with and manipulating arrays of data
Count functions
Functions for counting fields, and expressions
Crypto functions
Functions for data hashing, encryption, and authentication
Geo functions
Functions for working with and analysing geospatial data
HTTP functions
Functions for opening and submitting remote web requests
Validation functions
Functions for checking and validating data formatting
Math functions
Functions for mathematical operations and numeric analysis
Parse functions
Functions for parsing email addresses and URLs
Rand functions
Functions for generating random data values
Session functions
Functions for retrieving information about the user session
String functions
Functions for working with and manipulating string values
Time functions
Functions for working with and manipulating datetime values
Type functions
Functions for generating and ensuring specific data types
Scripting functions
Use JavaScript to create advanced functions with complex logic
Sleep function
Delays or pauses in the execution of a query or a batch