Questions tagged [massive]

A single file database access tool based on .NET 4 dynamics made by Rob Conery.

Code and documentation: https://github.com/robconery/massive

99 questions
1
vote
1 answer

Massive.Sqlite.cs -- Prototype fails because there is no COLUMN_NAME; Fix using PRAGMA table_info?

I having playing around with Rob Connery's Massive.Sqlite and I have a problem when the Prototype property is called: gets the schema base on this SQL sentence SELECT * FROM sqlite_master WHERE type = 'table' and name = @0 Where @0 is the name of…
Hugo
  • 6,244
  • 8
  • 37
  • 43
1
vote
1 answer

Repository Pattern Where and Lightweight ORMs

For my IRepository, i would like: To have it be usable by a micro-orm like dapper, petapoco, massive etc... for the SPEED To have where clauses that get run on the server, hopefully using Expression/IQueryable style (which is also very…
Micah
  • 10,295
  • 13
  • 66
  • 95
1
vote
0 answers

MVC3 Testing a Create Action and passing back created object - TempData?

How to pass a successfully created object from Create action with a RedirectToAction? All looks good in the action, just can't reference it in the test. [Test] public void…
Dave Mateer
  • 6,588
  • 15
  • 76
  • 125
1
vote
2 answers

How to test for no results in Massive

I've created a Find method on a Massive class. Problem is I've just realised it always returns true as the results are never null. Here's my code: public dynamic Find(string email) { dynamic result = new ExpandoObject(); …
lloydphillips
  • 2,775
  • 2
  • 33
  • 58
1
vote
1 answer

RuntimeBinderException on Massive query

Why am I getting a runtime binder exception when trying to execute the following query in Massive? public dynamic Find(string email, string type) { dynamic result = new ExpandoObject(); result = this.Query(@"SELECT * FROM…
lloydphillips
  • 2,775
  • 2
  • 33
  • 58
1
vote
1 answer

Why am I getting a RuntimeBinderException when returning dynamic?

I'm using Massive and have a Members table. On my Members class I have a find method to find a member by Email: public class Members : DynamicModel { public Members(): base("TSConnection", "Members", "Id"){} public dynamic…
lloydphillips
  • 2,775
  • 2
  • 33
  • 58
1
vote
0 answers

Returning multiple DB tables from Massive

I'd like to know if it is possible to call a multi-table stored procedure using Massive and return multiple tables. The old-school way of doing this was as follows using ADO.NET SqlCommand command = new SqlCommand("UserAppData",…
aarondcoleman
  • 536
  • 7
  • 9
1
vote
1 answer

Text mining on a massive dataset in R (or Python !)

I have a dataset of more than 2.300.000 observations. One variable is dedicated to descriptions (text), and there is sometimes quite long sentences. With all this observations imagine the number of words we have. I want to obtain an output (a data…
katdataecon
  • 185
  • 8
1
vote
2 answers

How to count specific numbers in massive on Python (not list)

I have a program which generates random numbers from -10 to 10. My task is to count how many elements from 1 to 5 are in this massive. the problem is that I can't use functions like counter or others because TypeError: 'int' object is not iterable .…
1
vote
0 answers

Node/Express Server not connecting to postgres database after updating Node to v14

I have an express app and am using massive to connect to a postgres db. I recently upgraded node to v14 and it is no longer working. When I roll back to node v13.11.0 it works fine. When I run this code to connect to the db: // DATABASE…
motogoozy
  • 11
  • 1
1
vote
0 answers

DeprecationWarning: Implicit disabling of certificate... How to fix? (node.js, express, massive)

I'm using Postgresql with Node.js, Express, and Massive. I'm getting this error: "(node:11507) DeprecationWarning: Implicit disabling of certificate verification is deprecated and will be removed in pg 8. Specify rejectUnauthorized: true to require…
Page COW
  • 515
  • 13
  • 31
1
vote
2 answers

How to paginate results of cypher, neo4j?

i am currently working with neo4j, if anybody knows how to do pagination with the results that a cypher query gives, specialy the size of the results is so big, about 100 millions. i know the methode of skip and limit and order by (which is not…
1
vote
0 answers

Property '__super__' does not exist on type '(pointSimplifierIns: any, opts: any) => void'

I use the Scott map in the angular2 project of mass point API,When I run npm run build:prod An error has occurred,The following is a relevant code and exceptions (added:There is no question of npm start command) /** * Custom grouping rendering…
ken
  • 11
  • 2
1
vote
0 answers

Connection to database and receiving error: database does not exist

So I am new to ReactJS and trying to connect to a Postgres Database on my local machine. I'm using Axios and Massive V2. Attempting to run my server.js file I am receiving the following error message in Terminal: (node:989)…
1
vote
1 answer

A lot of setText and String assignment

I have a lot of getting String from json objects like this: city1 = jsonobject.getJSONArray("object").getJSONObject(0).getString("city"); And if value not hull i apply this String to textview: if(city1.equals("")) { …
ironz
  • 19
  • 4