How to Create a Single DataPancake Data Source (Script Builder)
Build a script to create and initiate a scan for a single data source in DataPancake and optionally generate SQL code.
1. Navigate to the "Data Source" script builder

2. Enter the custom data source name

3. (Optional) Change the app database name

4. Enter the role used to install DataPancake

5. Enter the role which has the select privilege for the database object to be scanned

6. Select the Snowflake Database Object Type

7. Select the Column Data Type (Semi-Structured Only)

8. Select the Data Source Type

9. (Semi-Structured Only) Select the Data Format Type

10. Select the Attribute Create Type

11. Enter the Snowflake database name that contains the data

12. (Optional) Indicate if the database is shared

13. Enter the name of the schema which contains the database object to be scanned

14. Enter the name of the database object to be scanned

15. (Semi-Structured Only) Enter the name of the column to be scanned

16. Select the warehouse to be used by DataPancake to scan

17. (Optional) Prevent the scan from starting automatically

18. (Optional) Enter a record limit for the initial scan

19. (Optional) Enable Additional Paid Features

20. (Optional) Disable Using Case Sensitivity

21. (Optional) Enable generating SQL code after the scan completes

22. Enter the Materialized Object Type

23. Enter the user defined name for the root dynamic table, such as 'dt_<object_name>'

24. Enter the name of the warehouse used to refresh dynamic tables

25. Select the Semantic Layer - Object Type

26. Enter the user defined name for the root level view, such as 'vw_<object_name>'

27. Click "Generate Script"

28. Copy the script

29. Open a new Snowflake SQL file and paste the script

30. Scroll Down to Review the Optional Parameters as Part of the Code Generation

31. Execute the Script

32. Ensure successful execution by examining the call result column in the result set

33. View the scan status

Last updated
Was this helpful?