question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

retreive datasource by name

See original GitHub issue

Hey,

I would like to be able to fetch DataSource from DataSourceCollection by name.

Currently I am only able to fetch by index. which might change by others with .lower/.raise.

Since I might access DataSource from different location through the app, it will be great to save their names in order to manage them rather then their reference which, among other things, can lead to a memory leak.

I will be happy to implement it if the approach is accepted. .getByName method which returns DataSource[] (array of datasources since name is not unique)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
OmarShehatacommented, May 16, 2019

I think this is a good idea, given that EntityCollection has a getById function (and interestingly it doesn’t have a getByIndex).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to retrieve the datasource used by a persistence unit ...
I can retrieve the name of the persistence unit of an EntityManager using the properties of it's factory. I can retrieve the available ......
Read more >
how to Fetch datasource usernames of ALL reports
Below script fetches datasource for individual RsItem, but we have over 800 reports on reportserver and so i want to get a detailed...
Read more >
GridControl - Get DataSource name - DevExpress Support
Hello,. a gridcontrol uses mutiple datasources(bindingsources) at runtime. The bindsources are named like for example bs1, bs2, etc.
Read more >
Connecting with DataSource Objects (The Java™ Tutorials ...
This section shows you how to get a connection using the DataSource ... This means that a programmer can give the logical data...
Read more >
Use a query to determine the data source context
Use a query to determine the data source context ; Every item under site home page with additional sorting applied. query:$home//*[@@name='News'].
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found