Allow to generate the list of tables?
See original GitHub issueMaintaining the list of Tables is a bit tedious.
When a table is removed it is easy to update the list because there is a compiler error.
However, when adding a table the compiler doesn’t provide any help. Would it be possible to add support for generating the list of tables?
The things that would need to be configurable are the output and the namespace (could be inherited from the general.namespace.
In my project we generate it using this convention:
namespace Antidote.Database
[<RequireQualifiedAccess>]
module Tables =
open SqlHydra.Query
let acsIdentities = table<dbo.AcsIdentities> |> inSchema (nameof dbo)
let acsTokens = table<dbo.AcsTokens> |> inSchema (nameof dbo)
let callQueueEntries = table<dbo.CallQueueEntries> |> inSchema (nameof dbo)
let callRatingImprovementsByCallRating =
table<dbo.CallRatingImprovementsByCallRating> |> inSchema (nameof dbo)
let callRatings = table<dbo.CallRatings> |> inSchema (nameof dbo)
Having Tables marked as RequireQualifiedAccess makes the consumer experience easy.
Issue Analytics
- State:
- Created 9 months ago
- Comments:29 (29 by maintainers)
Top Results From Across the Web
Two ways to generate a list of tables in a Word document
By giving your tables captions, you can easily generate a list of tables (and figures). The captions serve as descriptive titles, ...
Read more >How to Create and Update a List of Tables or ... - YouTube
Learn how to create and update a list of tables or list of figures in Microsoft Word. Note that Word calls a list...
Read more >How to insert a list of tables or figures in Word - YouTube
This video will show you how to automatically create a list of tables or figures for your research report, dissertation or thesis.
Read more >How to Create and Update a List of Tables or Figures in ...
Learn how to create and update a list of tables or figures in Microsoft Word. Note that Word calls a list of tables...
Read more >How to create Table of Figures and List of Tables
Update a List of Tables or Figures · On the References tab, in the Captions group, click the Update Table button: Update Table...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The
Readerschange has been made and is checked into the main branch.There will need to be a function very similar to the
tablefunction that will return aQuerySource<'T>, where'Tis the table valued function’s return type. I would call itfunction, but that is a reserved keyword, so it will have to be something else. So if the table valued function’s name isudfGetOrdersthat takes an ‘int’ as input, the generated code might look like this:Usage:
My assumption was that SQL Server should disallow naming a function with the same name as an existing table. I just tried it and verified that it does throw an error:
Agreed!