Kirlovon / aloedb

Light, Embeddable, NoSQL database for Deno 🦕
https://deno.land/x/aloedb
MIT License
140 stars 12 forks source link

Adding helper function matchesRegex #5

Closed billykirk01 closed 3 years ago

billykirk01 commented 3 years ago

This addresses #4 if you will accept this new feature.

Kirlovon commented 3 years ago

Hey! RegExps is already supported and does not require a helper function. Here is example:

import { Database } from 'https://deno.land/x/aloedb/mod.ts';
const db = new Database();

await db.insertOne({ foo: 'bar baz' });
await db.findOne({ foo: /bar/g }); // Will work fine

I know, it's not mentioned at the moment. My fault. I am currently working on the documentation, so when I'm finished, there will be much less confusion like this one.

billykirk01 commented 3 years ago

That's excellent news! I will close this issue. Let me know if there is anything I can help out with on this project. Thanks again!