Version 1.0.8 (compatible with SurrealDB version 2.1.3):
- minor fixes
Version 1.0.7 (compatible with SurrealDB version 2.1.2):
- fix tests and examples
Version 1.0.6 (compatible with SurrealDB version 2.1.1):
- versionstamp is now can be used in SINCE statement for SHOW
- by default, if no SINCE were specified Show statement generates SINCE 1
- add DEFINE CONFIG statement, only Database object can use it
- add examples and tests for Show
- add examples and tests for DEFINE CONFIG
- count for non-existent table now returns error (not 0)
- fix tests
Version 1.0.5 (compatible with SurrealDB version 2.0.4):
- minor examples fix
- minor pylint and readme fixes
Version 1.0.4 (compatible with SurrealDB version 2.0.4):
- fix record ids bug (cause SDB since 2.0 not convert string to record_id)
- Readme block for RecordId
- examples for RecordId
- create RecordId object to work with string or uid/ulid record_id
- now all methods can use RecordId, but strings can be used too for compatibility
- now connection, database and table objects store transport type (http or ws)
- redundant DATA_LENGTH_FOR_LOGS was removed
- refactoring
- add tests, examples and docs for record ids
Version 1.0.3 (compatible with SurrealDB version 2.0.4):
- fix datetime bug for fields (prefix d')
- add tests, examples and docs for datetimes
- add test runs for Python 3.13
Version 1.0.2 (compatible with SurrealDB version 2.0.2):
- minor fixes
Version 1.0.1 (compatible with SurrealDB version 2.0.2):
- add run method for connections and run_function for Database (https://surrealdb.com/docs/surrealdb/integration/rpc#run)
- add insert_relation method for connections (https://surrealdb.com/docs/surrealdb/integration/rpc#insert_relation)
- add version method for connections (https://surrealdb.com/docs/surrealdb/integration/rpc#version)
- add info method for connections (https://surrealdb.com/docs/surrealdb/integration/rpc#info)
- add relate method for connections (https://surrealdb.com/docs/surrealdb/integration/rpc#relate)
- add graphql method for connections (https://surrealdb.com/docs/surrealdb/integration/rpc#graphql)
- minor fixes for docs and examples
Version 1.0.0 (compatible with SurrealDB version 2.0.0+):
- both http and ws connections lost signin, signup, authenticate, invalidate methods, sign in now happen under the hood on connecting
- USE method for http just adds headers "surreal-db" and "surreal-ns" for http-requests
- websocket client under the hood uses explicit "sec-websocket-protocol"="json" header
- http now uses rpc-protocol instead of different endpoints and methods
- for root user now you should connect only with credentials and then call use method (see examples)
- you can now specify access method on connecting via a Surreal/Database object
- now use Bearer instead of Basic for Authorization
- database argument is now optional for USE method, but raises for websocket if a database is not specified
- all QL-statements now have SurrealQL Syntax in documentation for class
- all DEFINE statements now have COMMENT finished statement
- now DEFINE TOKEN use Algorithm enum
- Database object can be created from active connection with
Database.from_connection(connection)
- Connection can be extracted from Database with
Database.get_connection()
- improve DEFINE ANALYZER, now it uses predefined methods for tokenizers and filters, and has documentation for all of them
- SELECT statement can use TEMPFILES clause on all levels except EXPLAIN (which is the last one)
- update DEFINE USER statement
- add UPSERT statement
- add DEFINE ACCESS JWT and DEFINE ACCESS RECORD statements
- add REMOVE ACCESS statement
- add ALTER TABLE statement
- add ENFORCED statement for DEFINE TABLE
- add CONCURRENTLY statement for DEFINE INDEX
- deprecate DEFINE TOKEN-REMOVE TOKEN and DEFINE SCOPE-REMOVE SCOPE
- let and unset now raises CompatibilityError for http
- add upsert method to Connection
- all DEFINE statements except SCOPE/TOKEN now have OVERWRITE clause
- Connection objects now store token after authorize
- more examples and tests, fix old examples
- fix Readme, add compatibility table
Version 0.5.3 (compatible with SurrealDB version 1.5.2):
- minor fixes for docs and examples
Version 0.5.2 (compatible with SurrealDB version 1.5.1):
- now user should use standard logging for debug
- remove log_level arguments for classes
- add LOG_FORMAT for default uses
- fix README
Version 0.5.1 (compatible with SurrealDB version 1.5.0):
- add more precise names for INDEX methods (M, TYPE)
- limit allowed options for some methods (TYPE)
- add documentation for index methods
- change BM25 (add docs and parameters)
- fix validate method bug for changefeed
- fix README, examples and tests
Version 0.5.0 (compatible with SurrealDB version 1.5.0):
- although INCLUDE ORIGINAL statement exists, it has no effect (SurrealDB team decision for 1.5.0)
- add REBUILD INDEX statement, usable for database and table objects
- improve DEFINE INDEX statement, now it can use MTREE and HNSW indexes
- fix #44 , so now set() and other methods which have optional string and keyword-arguments for QL will combine string and kwargs
- add INFO ... STRUCTURE feature as optional, by default, it is not used as it is for internal use of SDB
- add more examples and tests
Version 0.4.1 (compatible with SurrealDB version 1.4.2):
- add to_surreal_datetime_str and to_datetime functions, cause SurealDB has a specific datetime format
- minor improvements for documentation, examples and tests
Version 0.4.0 (compatible with SurrealDB version 1.4.0):
- code attribute of a result is now containing http status code or error code for websocket
- SHOW CHANGES uses current date-time if not specified, because SHOW does not work without SINCE
- fix live queries url links
- live query for QL is now can use VALUE and custom query
- DEFINE TABLE now can use TYPE and INCLUDE ORIGINAL
- minor improvements for documentation, examples and tests
Version 0.3.1 (compatible with SurrealDB version 1.3.1):
- increment default timeout to 15 seconds
- minor improvements for documentation
Version 0.3.0 (compatible with SurrealDB version 1.3.0):
- add IF NOT EXISTS for all DEFINE statements
- add IF EXISTS for all REMOVE statements
- improvements for documentation, examples and tests
Version 0.2.10 (compatible with SurrealDB version 1.2.2):
- minor improvements for documentation and tests
Version 0.2.9 (compatible with SurrealDB version 1.2.1):
- create DatabaseConnectionsPool for use at a high load
- improve documentation and examples
Version 0.2.8 (compatible with SurrealDB version 1.2.1):
- database now can use DEFINE FIELD, DEFINE TABLE
- Select now can use multiple aliases (AS)
- improve documentation and examples
Version 0.2.7 (compatible with SurrealDB version 1.2.1):
- support a new version
- Database object now can use and kill a live query
- readable error on misspell Database object name
Version 0.2.6 (compatible with SurrealDB version 1.2.0):
- websockets became much faster (both for single and multithreading)
- improve documentation
Version 0.2.5 (compatible with SurrealDB version 1.2.0):
- improve documentation about LQ and RecordID
- add first() and last() methods for Result
- add constants(math) tests
Version 0.2.4 (compatible with SurrealDB version 1.2.0):
- using IF EXISTS in all tables removing
- improve documentation
- add some tests for string::semver
Version 0.2.3 (compatible with SurrealDB version 1.1.1):
- database now can use RELATE, RETURN, DEFINE TOKEN
- improve documentation and examples
Version 0.2.2 (compatible with SurrealDB version 1.1.1):
- Select query now can use iterator to traverse results, see
- improve documentation and examples
Version 0.2.1 (compatible with SurrealDB version 1.1.1):
- Database now can define/remove index, analyzer and scope
- improve documentation and examples
Version 0.2.0 (compatible with SurrealDB version 1.1.1):
- QL-constructor added, you can now generate queries and use all features of QL
- result now has helpers like is_empty, to_dict, id, ids, get
- websocket connection works faster
- a lot more examples added
- updated readme on all updates and features
- bug fixes
Version 0.1.8 (compatible with SurrealDB version 1.1.1):
- grammar and spelling fixes
Version 0.1.6 (compatible with SurrealDB version 1.1.1):
- add changes feed ability
- add examples folder
- select now always returns a list
- create now always returns a dict (not list)
Version 0.1.5 (compatible with SurrealDB version 1.1.1):
- http transport now can use PATCH (via a query)
- remove INFO and add db_info, ns_info, root_info
- fix bug with http methods when using table_name "table:id"
- add docs to connection(parent for transports), including features
Version 0.1.4 (compatible with SurrealDB version 1.1.1):
- now you can use a custom live query, not just a simple one, look above in LQ part
- added some helper function to get database info, session info, table names
- add Release Notes to docs
- now even errors return as SurrealResult
- exceptions will be raised only if nothing we can do