Connection to NosDB (NoSQL)

2019-11-11

NosDB is a prominent representative of the NoSQL databases. It is designed for use on the .Net platform and has open source. NosDb, like many other non-relational databases, has a high speed and good linear scalability. In this article, we'll look at the way to connect to the NosDb database inside the report with a plug-in for the designer. As you know, you can connect plug-ins to a report designer that expands the functionality of the program. One of the areas of expansion of functionality is connectors to different databases. Indeed, it takes a lot of time to find, install and set connectors for different databases. FastReport allows you to create plugins that make the process of connecting to data as much easier as possible. However, you need to pre-assemble a plug-in library from the project, which is included in the supply package of FastReport.Net and is located in a folder:

C:\Program Files (x86)\FastReports\FastReport.Net\Extras\Connections\FastReport.NosDB

Once you assemble the project – you will get FastReport.NosDB.dll library. The link to the library you need to add to the report designer settings on the Plugins tab:

 

 After restarting the designer, you can create a data source of the report. In connection settings select NosDb connection:

 

Here you need to enter the server address, user login and password (if configured), database name and collection. Collections are analogues of tables. You can specify one or more collections through a comma. At this point, you've only got to select the collections you need in the report in the next step:            

 

Unfortunately, with NoSQL database we cannot use a SQL query to filter data at the stage of their preparation. So just look at the result:

 

November 20, 2024

Localization and Language Switching in FastReport VCL

FastReport VCL supports 40 languages for interface localization and allows you to change the language on the fly through menus or code, without recompilation.
November 01, 2024

New Features of the FastReport VCL Editor

We are considering new features of the report editor: extension lines, highlighting of intersecting objects, updated report and data trees.
October 30, 2024

Using Styles When Creating Reports in FastReport VCL

The article discusses one of the new features of FastReport VCL — the use of styles and style sheets.
Fast Reports
  • 800-985-8986 (English, US)
  • +4930568373928 (German)
  • +55 19 98147-8148 (Portuguese)
  • info@fast-report.com
  • 66 Canal Center Plaza, Ste 505, Alexandria, VA 22314

© 1998-2024 Fast Reports Inc.