Module

Yoga.ScyllaDB.ScyllaDB

Package
purescript-yoga-scylladb
Repository
rowtype-yoga/purescript-yoga-scylladb

#Client Source

data Client

#ResultSet Source

#Keyspace Source

#Username Source

#Password Source

#CQL Source

newtype CQL

Constructors

Instances

#Row Source

type Row = Foreign

#QueryResultImpl Source

type QueryResultImpl = { pageState :: Nullable String, rowLength :: Int, rows :: Array Row }

#QueryResult Source

type QueryResult = { pageState :: Maybe String, rowLength :: Int, rows :: Array Row }

#ClientOptionsImpl Source

type ClientOptionsImpl :: Row Typetype ClientOptionsImpl = (contactPoints :: Array ContactPoint, credentials :: { password :: Password, username :: Username }, keyspace :: Keyspace, localDataCenter :: Datacenter, policies :: { loadBalancing :: Foreign, reconnection :: Foreign, retry :: Foreign }, pooling :: { coreConnectionsPerHost :: PoolSize, maxConnectionsPerHost :: PoolSize }, protocolOptions :: { maxSchemaAgreementWaitSeconds :: Int, port :: Int }, queryOptions :: { consistency :: ConsistencyLevel, fetchSize :: Int, prepare :: Boolean }, socketOptions :: { connectTimeout :: Milliseconds, readTimeout :: Milliseconds })

#createClientImpl Source

createClientImpl :: forall opts. EffectFn1 (Record opts) Client

#createClient Source

createClient :: forall opts opts_. Union opts opts_ ClientOptionsImpl => Record opts -> Effect Client

#ExecuteOptionsImpl Source

type ExecuteOptionsImpl :: Row Typetype ExecuteOptionsImpl = (consistency :: ConsistencyLevel, fetchSize :: Int, pageState :: String, prepare :: Boolean, timestamp :: Number, traceQuery :: Boolean)

#executeWithOptionsImpl Source

#executeWithOptions Source

executeWithOptions :: forall opts opts_. Union opts opts_ ExecuteOptionsImpl => CQL -> Array Foreign -> Record opts -> Client -> Aff QueryResult

#BatchQuery Source

type BatchQuery = { params :: Array Foreign, query :: CQL }

#BatchOptionsImpl Source

type BatchOptionsImpl :: Row Typetype BatchOptionsImpl = (consistency :: ConsistencyLevel, counter :: Boolean, logged :: Boolean, timestamp :: Number)

#batchWithOptions Source

batchWithOptions :: forall opts opts_. Union opts opts_ BatchOptionsImpl => Array BatchQuery -> Record opts -> Client -> Aff QueryResult

#PreparedStatement Source

#param Source

param :: forall a. ToCQLValue a => a -> Array Foreign

#params Source

params :: forall a. ToCQLValue a => Array a -> Array Foreign

#UUID Source

data UUID

Instances