ba.sake.querson

package ba.sake.querson

Members list

Type members

Classlikes

case class Config(seqWriteMode: SeqWriteMode, objWriteMode: ObjWriteMode)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ParseError(path: String, msg: String, value: Option[Any])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final class ParsingException(val errors: Seq[ParseError]) extends QuersonException

Attributes

Companion
object
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
sealed class QuersonException(msg: String, cause: Throwable) extends Exception

Attributes

Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
enum QueryStringData(val tpe: String)

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
case Simple
case Sequence
case Obj
trait QueryStringRW[T]

Maps a T to/from query params string map

Maps a T to/from query params string map

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object QueryStringRW

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Types

type QueryStringMap = Map[String, Seq[String]]

Represents a raw query string map. Values are not encoded.

Represents a raw query string map. Values are not encoded.

Attributes

Value members

Concrete methods

def parseQSMap(queryStringMap: QueryStringMap): QueryStringData

Takes a raw map of query string and converts it into a JSON-like AST

Takes a raw map of query string and converts it into a JSON-like AST

Value parameters

qsMap

Raw map of query string

Attributes

Returns

Query string AST

Concrete fields

Extensions

Extensions

extension (queryStringMap: QueryStringMap)(queryStringMap: QueryStringMap)
def parseQueryStringMap[T](using rw: QueryStringRW[T]): T

Parses T from a QueryStringMap map.

Parses T from a QueryStringMap map.

Attributes

extension [T](value: T)(value: T)(using rw: QueryStringRW[T])
def toQueryString(config: Config): String

Serializes T to query string, with key/values URL encoded.

Serializes T to query string, with key/values URL encoded.

Value parameters

config

Configures how to serialize sequences and nested objects

rw

Typeclass that does the heavy lifting

Attributes

Returns

Query parameters string

Serializes T to QueryStringMap map. Note that values are not URL encoded.

Serializes T to QueryStringMap map. Note that values are not URL encoded.

Value parameters

config

Configures how to serialize sequences and nested objects

rw

Typeclass that does the heavy lifting

Attributes

Returns

QueryStringMap