Skip to content
#

Database

A database is a structured set of data held in a computer, most often a server. Databases use a database management system (DBMS) that interacts with users, similar to a lookup table. Modern databases are designed to allow for creation, querying, updating, and administration of the data it holds.

Here are 1,479 public repositories matching this topic...

sheetjs
dandv
dandv commented Jan 6, 2020
const XLSX = require('xlsx');

const wb = XLSX.utils.book_new();

const ws = XLSX.utils.json_to_sheet([]);

XLSX.utils.book_append_sheet(wb, ws, 'Bug sheet');

ws.A1 = { t: 's', f: 'square' };

XLSX.writeFile(wb, 'formula.ods');

The resulting .ODS file contains:

<table:table-cell table:formula="of:=square" office:value-type="string"><text:p>undefined</text:p></table
Morriz
Morriz commented Apr 18, 2020

Your documentation shows no way to replace an objects value. Any updates to an object with:

db.get(name).find(selectors).assign(data).write()

merges the data with the existing object...not what I'd expect.

How can we replace a record without merging? Can you update your docs?

react-native-firebase
radex
radex commented Jun 20, 2019

This is to fix: Nozbe/WatermelonDB#186

Right now, deleting records is not very efficient in WatermelonDB.

Say you have models like this: Blog has_many Post has_many Comment. If you want to delete a blog post, you also have to delete all its posts, and all their comments. This happens one-by-one currently. What we need is the ability to efficiently (and atomically if

frames75
frames75 commented Feb 19, 2020

In the tutorial events there is this example:

const User = bookshelf.model('User', {
  tableName: 'users',

  initialize() {
    this.on('saving', (model) => {
      return User.forge({email: model.get('email')}).fetch().then((user) => {
        if (user) 
            throw new Error('That email address already exists')
    
dfahlander
dfahlander commented May 4, 2020

Need help providing more samples and better flow documentation of the DBCore interface and all its methods and related interfaces. For a skilled developer, it is possible to lab with DBCore even based on the minimal docs we have now, by looking at existing middlewares and create a custom middleware.

There is a skelleton of docs around the DBCore interface right now that is not very easy to foll

aphelionz
aphelionz commented Mar 8, 2019

There's been a number of questions lately about data not appearing in the store when you expect, so I thought it would be a good time to take a second to explain the process of opening a database and getting data out of it. The database can be either local or remote.

Important Note: While content discovery can happen via the IPFS distributed hash table, due to the limitations of browser-bas

maritaria
maritaria commented Sep 26, 2017
	let User = db.define("user", {
		name: { type: "text", required: true, unique: true },
		task_name: String,
		task_data: Object,
		last_seen: { type: 'date', time: true },
		card_url: { type: 'text' },
	});
	
	let Group = db.define("group", {
		name: { type: "text", required: true },
		general_chat: { type: "text", required: true, unique: true },
		admin_chat: { type: "t
pgaro
pgaro commented Aug 12, 2019

The explain analyze button doesn't use buffers. Offering explain (analyze, buffers) sounds like very helpful feature to me. I even think that explain (analyze, buffers) might be the better default for analyzing queries. That differs from verbose, which is not considered as very helpful by a major part of the community.

All the best
pgaro

bug
haveamission
haveamission commented Dec 12, 2019

I am trying to generate a TypeScript model, and I am getting the above error.

My model looks like this:

/* jshint indent: 2 */
// tslint:disable
import * as sequelize from 'sequelize';
import {DataTypes} from 'sequelize';
import {email_tblInstance, email_tblAttribute} from './db';
module.exports = function(sequelize: sequelize.Sequelize, DataTypes: DataTypes) {
  return sequelize.
bionicles
bionicles commented Jan 26, 2020
  • Include a link to the documentation section or the example
    Couldn’t find one...

  • Describe the confusion
    I just want to make Graph queries from a serverless function in Nodejs to an oracle cloud database

  • Suggest changes that would help
    Please add an example of connecting a nodejs server to oracle cloud database and then basic CRUD with PGQL

postgres
okbrown
okbrown commented Jan 10, 2020

Hi, First and foremost, I think this is a great start at making something really simple and effective. Thank you!!

However... I have always found template strings a little odd especially in this context.
Let us say we have

const query = `SELECT ${distinct}, ${columns} FROM ${table} ${innerJoins} WHERE ${where}`;
(Where distinct, columns, table etc are their own strings made up of other

Wikipedia
Wikipedia
You can’t perform that action at this time.