We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SQL error raised when SQL keywords are used in collection or field name.
import unittest import nosqlite class Test(unittest.TestCase): def setUp(self): self.client = nosqlite.Client('.') self.database = self.client.memory self.collection = self.database.index def test_keyword_escape(self): collection = self.database.index data = {'index':'index'} # insert collection.insert(data) # find self.assertDictEqual(data, collection.find_one(index='index')) self.assertDictEqual(data, collection.find_one(index='index', fields=["index"])) # update collection.update(data, index='index') # rename collection.rename('table') collection.rename('index') # copy collection.copy('create') # delete collection.delete(index='index') collection.delete()
The text was updated successfully, but these errors were encountered:
e92e3bf
pekeq
No branches or pull requests
SQL error raised when SQL keywords are used in collection or field name.
The text was updated successfully, but these errors were encountered: