Dubnium
v1
v1
  • Newest version
  • Reference
    • Install
    • Quick Start
    • API
      • Initialize
      • Create and Delete
      • Get
      • Modify
      • Other
    • CLI
      • Install CLI
      • CLI Use
      • CLI Commands
    • Events
    • returnType
    • License
  • Update Log
  • Discord
  • NPM Page
  • Support the Project
  • Get help & submit feedback
Powered by GitBook
On this page
  • Get Record From Tag
  • Parameters
  • Get All Records
  • Parameters
  • Fuzzy Search Tags
  • Parameters
  • Get Record from Value (JSON Only)
  • Parameters
  • Check if a Record exists
  • Parameters

Was this helpful?

  1. Reference
  2. API

Get

PreviousCreate and DeleteNextModify

Last updated 2 years ago

Was this helpful?

Get Record From Tag

Get a Record from it's tag.

db.get('tag')

Parameters

Name
About
Type
Required

tag

The Record's tag

String

Get All Records

db.getAll(returnType)

Parameters

Name
About
Type
Required

returnType

Number

Fuzzy Search Tags

db.searchTags('term',returnType)

Fuzzy search made possible by Fuzzy ()

Parameters

Name
About
Type
Required

term

The search term

String

returnType

Number

Get Record from Value (JSON Only)

db.getFromValue('key','value',onlyFirst)

Parameters

Name
About
Type

key

The key to get from

String

value

The value to get from

String

onlyFirst

Return only the first found Record

Boolean

Check if a Record exists

Check if a record exists.

This will only return true or false.

db.exists('tag')

Parameters

Name
About
Type
Required

tag

The tag to check for

String

Read about it

Read about it

https://www.npmjs.com/package/fuzzy
here
here