Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "database"

Index

Type aliases

DatabaseInsertable

DatabaseInsertable: DatabaseValue | DatabaseValueAble

Everything that can be inserted into a database (DatabaseValue or DatabaseValueAble)

author

Nicolas Schmidt <@nsc-de>

DatabaseValue

DatabaseValue: DatabaseObject | DatabaseArray | number | string | boolean | null | undefined

A value as it is stored in the Database

author

Nicolas Schmidt <@nsc-de>

DatabaseValueAble

DatabaseValueAble: DatabaseValueAble[] | JSObject<DatabaseValueAble> | number | string | boolean | null | undefined

The Primitives of the DatabaseValue

author

Nicolas Schmidt <@nsc-de>

Functions

createDatabase

createDatabaseValue

  • 🔨 Creates an DatabaseArray from a given array

    author

    Nicolas Schmidt <@nsc-de>

    see

    DatabaseArray

    see

    createDatabaseValue()

    Parameters

    • val: any[]

      🏡 the value to create a database-value from

    Returns DatabaseArray

    🔨 the DatabaseArray representation of the given array

  • 🔨 Creates an DatabaseObject from a given object

    author

    Nicolas Schmidt <@nsc-de>

    see

    DatabaseObject

    see

    createDatabaseValue()

    Parameters

    • val: JSObject

      🏡 the value to create a database-value from

    Returns DatabaseObject

    🔨 the DatabaseObject-representation of the given object

  • This function is not really useful. It gives just the input back. It is just implemented that you don't get an error when you give a DatabaseObject as argument.

    author

    Nicolas Schmidt <@nsc-de>

    deprecated

    ⛔ Using this function with that argument does nothing and just slows down your process

    see

    DatabaseObject

    see

    createDatabaseValue()

    Parameters

    Returns DatabaseObject

    ⛔ the same DatabaseObject that is given as input

  • This function is not really useful. It gives just the input back. It is just implemented that you don't get an error when you give a DatabaseArray as argument.

    author

    Nicolas Schmidt <@nsc-de>

    deprecated

    ⛔ Using this function with that argument does nothing and just slows down your process

    see

    DatabaseArray

    see

    createDatabaseValue()

    Parameters

    • val: DatabaseArray

      🏡 the value to create a database-value from

    Returns DatabaseArray

    ⛔ the same DatabaseArray that is given as input

  • This function is not really useful. It gives just the input back. It is just implemented that you don't get an error when you give a string as argument.

    author

    Nicolas Schmidt <@nsc-de>

    deprecated

    ⛔ Using this function with that argument does nothing and just slows down your process

    see

    createDatabaseValue()

    Parameters

    • val: string

      🏡 the value to create a database-value from

    Returns string

    ⛔ the same string that is given as input

  • This function is not really useful. It gives just the input back. It is just implemented that you don't get an error when you give a number as argument.

    author

    Nicolas Schmidt <@nsc-de>

    deprecated

    ⛔ Using this function with that argument does nothing and just slows down your process

    see

    createDatabaseValue()

    Parameters

    • val: number

      🏡 the value to create a database-value from

    Returns number

    ⛔ the same number that is given as input

  • This function is not really useful. It gives just the input back. It is just implemented that you don't get an error when you give a boolean as argument.

    author

    Nicolas Schmidt <@nsc-de>

    deprecated

    ⛔ Using this function with that argument does nothing and just slows down your process

    see

    createDatabaseValue()

    Parameters

    • val: boolean

      🏡 the value to create a database-value from

    Returns boolean

    ⛔ the same boolean that is given as input

  • This function is not really useful. It gives just the input back. It is just implemented that you don't get an error when you give null as argument.

    author

    Nicolas Schmidt <@nsc-de>

    deprecated

    ⛔ Using this function with that argument does nothing and just slows down your process

    see

    createDatabaseValue()

    Parameters

    • val: null

      🏡 the value to create a database-value from

    Returns null

    ⛔ null

  • This function is not really useful. It gives just the input back. It is just implemented that you don't get an error when you give undefined as argument.

    author

    Nicolas Schmidt <@nsc-de>

    deprecated

    ⛔ Using this function with that argument does nothing and just slows down your process

    see

    createDatabaseValue()

    Parameters

    • val: undefined

      🏡 the value to create a database-value from

    Returns undefined

    ⛔ undefined

  • Creates a DatabaseValue from a given value

    author

    Nicolas Schmidt <@nsc-de>

    see

    createDatabaseValue()

    Parameters

    Returns DatabaseValue

    the database-value

getNormalValue

  • 🔨 Creates a normal array from a given DatabaseArray

    author

    Nicolas Schmidt <@nsc-de>

    see

    DatabaseObject

    see

    getNormalValue()

    Parameters

    • val: DatabaseArray

      🏡 the value you want to convert back to a normal value

    Returns any[]

    🔨 the simple array

  • 🔨 Creates a normal object from a given DatabaseObject

    author

    Nicolas Schmidt <@nsc-de>

    see

    DatabaseObject

    see

    getNormalValue()

    Parameters

    • val: DatabaseObject

      🏡 the value you want to convert back to a normal value

    Returns JSObject

    🔨 the simple object

  • This function is not really useful. It gives just the input back. It is just implemented that you don't get an error when you give a array as argument.

    author

    Nicolas Schmidt <@nsc-de>

    deprecated

    ⛔ Using this function with that argument does nothing and just slows down your process

    see

    DatabaseObject

    see

    getNormalValue()

    Parameters

    • val: any[]

      🏡 the value you want to convert back to a normal value

    Returns any[]

    ⛔ the same array that was given as input

  • This function is not really useful. It gives just the input back. It is just implemented that you don't get an error when you give a object as argument.

    author

    Nicolas Schmidt <@nsc-de>

    deprecated

    ⛔ Using this function with that argument does nothing and just slows down your process

    see

    DatabaseObject

    see

    getNormalValue()

    Parameters

    • val: JSObject

      🏡 the value you want to convert back to a normal value

    Returns JSObject

    ⛔ the same object that was given as input

  • This function is not really useful. It gives just the input back. It is just implemented that you don't get an error when you give a string as argument.

    author

    Nicolas Schmidt <@nsc-de>

    deprecated

    ⛔ Using this function with that argument does nothing and just slows down your process

    see

    getNormalValue()

    Parameters

    • val: string

      🏡 the value you want to convert back to a normal value

    Returns string

    ⛔ the same string that was given as input

  • This function is not really useful. It gives just the input back. It is just implemented that you don't get an error when you give a number as argument.

    author

    Nicolas Schmidt <@nsc-de>

    deprecated

    ⛔ Using this function with that argument does nothing and just slows down your process

    see

    getNormalValue()

    Parameters

    • val: number

      🏡 the value you want to convert back to a normal value

    Returns number

    ⛔ the same number that was given as input

  • This function is not really useful. It gives just the input back. It is just implemented that you don't get an error when you give a boolean as argument.

    author

    Nicolas Schmidt <@nsc-de>

    deprecated

    ⛔ Using this function with that argument does nothing and just slows down your process

    see

    getNormalValue()

    Parameters

    • val: boolean

      🏡 the value you want to convert back to a normal value

    Returns boolean

    ⛔ the same boolean that was given as input

  • This function is not really useful. It gives just the input back. It is just implemented that you don't get an error when you give null as argument.

    author

    Nicolas Schmidt <@nsc-de>

    deprecated

    ⛔ Using this function with that argument does nothing and just slows down your process

    see

    getNormalValue()

    Parameters

    • val: null

      🏡 the value you want to convert back to a normal value

    Returns null

    ⛔ null

  • This function is not really useful. It gives just the input back. It is just implemented that you don't get an error when you give undefined as argument.

    author

    Nicolas Schmidt <@nsc-de>

    deprecated

    ⛔ Using this function with that argument does nothing and just slows down your process

    see

    getNormalValue()

    Parameters

    • val: undefined

      🏡 the value you want to convert back to a normal value

    Returns undefined

    ⛔ undefined

  • creates the 'normal' value from DatabaseValue

    author

    Nicolas Schmidt <@nsc-de>

    see

    getNormalValue()

    Parameters

    Returns DatabaseValueAble

    the 'normal' value

Generated using TypeDoc