ScyllaDB University Live | Free Virtual Training Event
Learn more
ScyllaDB Documentation Logo Documentation
  • Deployments
    • Cloud
    • Server
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
    • Supported Driver Versions
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Install
Search Ask AI
ScyllaDB Docs ScyllaDB Node.js Driver API Reference Modules mapping

mapping¶

Module containing classes and fields related to the Mapper.

Source

mapping/index.js, line 3

Classes¶

DefaultTableMappings
Mapper
ModelBatchItem
ModelMapper
Result
UnderscoreCqlToCamelCaseMappings

Interfaces¶

TableMappings

Members¶

(inner, constant) q :Object

Contains functions that represents operators in a query.

Type:

  • Object

Properties:

Name Type Description
in_ function

Represents the CQL operator "IN".

gt function

Represents the CQL operator greater than ">".

gte function

Represents the CQL operator greater than or equals to ">=" .

lt function

Represents the CQL operator less than "<" .

lte function

Represents the CQL operator less than or equals to "<=" .

notEq function

Represents the CQL operator not equals to "!=" .

and function

When applied to a property, it represents two CQL conditions on the same column separated by the logical AND operator, e.g: "col1 >= x col < y"

incr function

Represents the CQL increment assignment used for counters, e.g: "col = col + x"

decr function

Represents the CQL decrement assignment used for counters, e.g: "col = col - x"

append function

Represents the CQL append assignment used for collections, e.g: "col = col + x"

prepend function

Represents the CQL prepend assignment used for lists, e.g: "col = x + col"

remove function

Represents the CQL remove assignment used for collections, e.g: "col = col - x"

Source

mapping/q.js, line 84

Type Definitions¶

MappingOptions

Represents the mapping options.

Type:

  • Object

Properties:

Name Type Description
models Object:.<String:, ModelOptions:>

An associative array containing the name of the model as key and the table and column information as value.

Source

mapping/mapper.js, line 193

ModelOptions

Represents a set of options that applies to a certain model.

Type:

  • Object

Properties:

Name Type Attributes Description
tables Array:.<String:> | Array:.<{name:, isView:}>

An Array containing the name of the tables or An Array containing the name and isView property to describe the table.

mappings TableMappings

The TableMappings implementation instance that is used to convert from column names to property names and the other way around.

columnNames Object:.<String:, String:> <optional>

An associative array containing the name of the columns and properties that doesn't follow the convention defined in the TableMappings.

keyspace String <optional>

The name of the keyspace. Only mandatory when the Client is not using a keyspace.

Source

mapping/mapper.js, line 200

Was this page helpful?

PREVIOUS
geometry
NEXT
DefaultTableMappings
  • Create an issue
  • Edit this page

On this page

  • mapping
    • Classes
    • Interfaces
    • Members
    • Type Definitions
ScyllaDB Node.js Driver
Search Ask AI
  • main
    • main
  • API Reference
    • Modules
      • auth
        • AuthProvider
        • Authenticator
        • PlainTextAuthProvider
      • concurrent
      • datastax
      • errors
        • ArgumentError
        • AuthenticationError
        • BusyConnectionError
        • DriverInternalError
        • NoHostAvailableError
        • NotSupportedError
        • OperationTimedOutError
        • ResponseError
      • geometry
      • mapping
        • DefaultTableMappings
        • Mapper
        • ModelBatchItem
        • ModelMapper
        • Result
        • UnderscoreCqlToCamelCaseMappings
        • TableMappings
      • metadata
        • Aggregate
        • ClientState
        • ColumnMetadata
        • Index
        • KeyspaceMetadata
        • MaterializedView
        • Metadata
        • SchemaFunction
        • Strategy
        • TableMetadata
        • UdtField
        • UserDefinedType
      • metrics
        • DefaultMetrics
        • ClientMetrics
      • policies
        • addressResolution
          • AddressTranslator
          • EC2MultiRegionTranslator
          • MappingAddressTranslator
        • loadBalancing
          • AllowListPolicy
          • DCAwareRoundRobinPolicy
          • DefaultLoadBalancingPolicy
          • LegacyDefaultLoadBalancingPolicy
          • LoadBalancingConfig
          • LoadBalancingPolicy
          • RoundRobinPolicy
          • TokenAwarePolicy
        • reconnection
          • ConstantReconnectionPolicy
          • ExponentialReconnectionPolicy
          • ReconnectionPolicy
        • retry
          • FallthroughRetryPolicy
          • RetryPolicy
        • speculativeExecution
          • ConstantSpeculativeExecutionPolicy
          • NoSpeculativeExecutionPolicy
          • SpeculativeExecutionPolicy
        • timestampGeneration
          • MonotonicTimestampGenerator
          • TimestampGenerator
      • tracker
        • RequestLogger
        • RequestTracker
      • types
        • Duration
        • InetAddress
        • Integer
        • LocalDate
        • Long
        • ResultSet
        • ResultStream
        • Row
        • TimeUuid
        • Vector
    • Classes
      • AddressResolver
      • ByteOrderedToken
      • Client
      • Encoder
      • EncoderMembers
      • ExecutionOptions
      • ExecutionProfile
      • FrameReader
      • HashSet
      • Host
      • HostMap
      • LineString
      • Murmur3Token
      • Point
      • Polygon
      • PreparedInfo
      • RandomToken
      • SslOptions
      • Token
      • TokenRange
    • Interfaces
    • Events
    • Global Functions and Constants
Docs Tutorials University Contact Us About Us
© 2026 ScyllaDB | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Last updated on 14 May 2026.
Powered by Sphinx 9.1.0 & ScyllaDB Theme 1.9.2