Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NODERAWFS error for some adapters #203

Open
AimForNaN opened this issue Jul 1, 2020 · 0 comments
Open

NODERAWFS error for some adapters #203

AimForNaN opened this issue Jul 1, 2020 · 0 comments

Comments

@AimForNaN
Copy link

AimForNaN commented Jul 1, 2020

Which version are you using?
@nano-sql/adapter-rocksdb: 2.0.7
@nano-sql/core: 2.3.7

Describe the bug
Error: NODERAWFS is currently only supported on Node.js environment.

Was attempted in an electron browser environment. It is possible this occurs also with some of the other adapters.
So far, I've confirmed it for LevelDB, too.

Expected behavior
Shouldn't it just work? Been looking around for the most promising NoSQL library. This one looked the best for my needs. Hoping this can be resolved.

Example

async function init() {
	return await nSQL().createDatabase({
		id: 'id',
		mode: new RocksDB(),
		path: 'file://db/',
		tables: [
			{
				name: 'table',
				model: [
					{
						"key": "Id",
						"type": "int",
						"ai": true,
						"notNull": true,
						"pk": true
					},
					{
						"key": "key",
						"value": "string"
					},
				],
			},
		],
	});
}
init();
@AimForNaN AimForNaN changed the title NODERAWFS error for RocksDB adapter NODERAWFS error for some adapters Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant