3.1.1 • Published 5 years ago

toolsdb v3.1.1

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

ToolsDB

A simple sqlite wrapper that helps you use Basic sql Commands/Codes

Requirements

  • NodeJS 8+
  • Any Javascript Code that you want to Use databases on!

Examples

pushTools:

const tools = require('toolsdb');

tools.pushTools('userID', 500).then(i => { // Adds 500 to an assigned User ID
  console.log(i) // { ID: 'user', value: 500, text: '' }
  console.log(i.value) // Returns 500
});

/*
  We can also make it remove an amount!
  */
  
  tools.pushTools('userID', -500).then(i => { // Removes 500 to an assigned User ID
  console.log(i) // { ID: 'user', value: -500, text: '' }
  console.log(i.value) // Returns -500
});

getTools:

const tools = require('toolsdb');

tools.getTools('userID').then(i => { // Fetches values from ID user, then forwards it to i
  console.log(i) // { ID: 'user', value: 0, text: '' }
  console.log(i.value) // Returns 0
});

pushField:

const tools = require('toolsdb');

tools.pushField('user', 'This is a stored string!').then(i => { // Fetches values from ID user, updates text
    console.log(i) // { ID: 'user', value: 0, text: 'This is a stored string!' }
    console.log(i.text) // 'This is a stored string!'
});

getObject:

const tools = require('toolsdb');  
var my_obj = {
  user: 'Wolfie',
  age: '16'
};

tools.getObject(my_obj).then(c => { // Gets the Defined Object
  console.log(c) // { user: 'Wolfie', age: '16' }
  console.log(c.user) // 'Wolfie'
  console.log(c.age) // '16'
});  

Updates

  • Removed the useless fetcharray function, as it bugged the system.
  • Fixed package completely.

Credits

  • Project transfered from Kevlar(Discord: Kevlar#9411)
  • Updates are now configured / built by Wolfie(Discord: Wolfie#4288)

Aspect Discord Bot

Invite

Aspects Official Chat

Link: Here!

3.1.1

5 years ago

3.1.0

5 years ago

3.0.9

6 years ago

3.0.8

6 years ago

3.0.7

6 years ago

3.0.6

6 years ago

3.0.5

6 years ago

3.0.4

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

2.2.7

6 years ago

2.2.6

6 years ago

2.2.5

6 years ago

2.2.4

6 years ago

2.2.3

6 years ago

2.2.2

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.9

6 years ago

2.1.8

6 years ago

2.1.7

6 years ago

2.1.6

6 years ago

2.1.5

6 years ago

2.1.4

6 years ago

2.1.3

6 years ago