drizzle-orm 0.36.4-ddb97ec → 0.37.0-3f3eb73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (446) hide show
  1. package/column-builder.cjs.map +1 -1
  2. package/column-builder.d.cts +4 -3
  3. package/column-builder.d.ts +4 -3
  4. package/column-builder.js.map +1 -1
  5. package/durable-sqlite/driver.cjs +64 -0
  6. package/durable-sqlite/driver.cjs.map +1 -0
  7. package/durable-sqlite/driver.d.cts +9 -0
  8. package/durable-sqlite/driver.d.ts +9 -0
  9. package/durable-sqlite/driver.js +42 -0
  10. package/durable-sqlite/driver.js.map +1 -0
  11. package/durable-sqlite/index.cjs +25 -0
  12. package/durable-sqlite/index.cjs.map +1 -0
  13. package/durable-sqlite/index.d.cts +2 -0
  14. package/durable-sqlite/index.d.ts +2 -0
  15. package/durable-sqlite/index.js +3 -0
  16. package/durable-sqlite/index.js.map +1 -0
  17. package/durable-sqlite/migrator.cjs +85 -0
  18. package/durable-sqlite/migrator.cjs.map +1 -0
  19. package/durable-sqlite/migrator.d.cts +14 -0
  20. package/durable-sqlite/migrator.d.ts +14 -0
  21. package/durable-sqlite/migrator.js +61 -0
  22. package/durable-sqlite/migrator.js.map +1 -0
  23. package/durable-sqlite/session.cjs +131 -0
  24. package/durable-sqlite/session.cjs.map +1 -0
  25. package/durable-sqlite/session.d.cts +46 -0
  26. package/durable-sqlite/session.d.ts +46 -0
  27. package/durable-sqlite/session.js +107 -0
  28. package/durable-sqlite/session.js.map +1 -0
  29. package/mysql-core/utils.d.cts +1 -2
  30. package/mysql-core/utils.d.ts +1 -2
  31. package/mysql-core/view.cjs.map +1 -1
  32. package/mysql-core/view.d.cts +2 -3
  33. package/mysql-core/view.d.ts +2 -3
  34. package/mysql-core/view.js.map +1 -1
  35. package/neon-http/driver.cjs.map +1 -1
  36. package/neon-http/driver.d.cts +3 -3
  37. package/neon-http/driver.d.ts +3 -3
  38. package/neon-http/driver.js.map +1 -1
  39. package/package.json +784 -3
  40. package/pg-core/db.cjs +4 -2
  41. package/pg-core/db.cjs.map +1 -1
  42. package/pg-core/db.js +4 -2
  43. package/pg-core/db.js.map +1 -1
  44. package/pg-core/utils.d.cts +2 -3
  45. package/pg-core/utils.d.ts +2 -3
  46. package/pg-core/view.cjs.map +1 -1
  47. package/pg-core/view.d.cts +4 -5
  48. package/pg-core/view.d.ts +4 -5
  49. package/pg-core/view.js.map +1 -1
  50. package/query-builders/select.types.cjs.map +1 -1
  51. package/query-builders/select.types.d.cts +2 -2
  52. package/query-builders/select.types.d.ts +2 -2
  53. package/singlestore/driver.cjs +113 -0
  54. package/singlestore/driver.cjs.map +1 -0
  55. package/singlestore/driver.d.cts +52 -0
  56. package/singlestore/driver.d.ts +52 -0
  57. package/singlestore/driver.js +89 -0
  58. package/singlestore/driver.js.map +1 -0
  59. package/singlestore/index.cjs +25 -0
  60. package/singlestore/index.cjs.map +1 -0
  61. package/singlestore/index.d.cts +2 -0
  62. package/singlestore/index.d.ts +2 -0
  63. package/singlestore/index.js +3 -0
  64. package/singlestore/index.js.map +1 -0
  65. package/singlestore/migrator.cjs +33 -0
  66. package/singlestore/migrator.cjs.map +1 -0
  67. package/singlestore/migrator.d.cts +3 -0
  68. package/singlestore/migrator.d.ts +3 -0
  69. package/singlestore/migrator.js +9 -0
  70. package/singlestore/migrator.js.map +1 -0
  71. package/singlestore/session.cjs +258 -0
  72. package/singlestore/session.cjs.map +1 -0
  73. package/singlestore/session.d.cts +52 -0
  74. package/singlestore/session.d.ts +52 -0
  75. package/singlestore/session.js +236 -0
  76. package/singlestore/session.js.map +1 -0
  77. package/singlestore-core/alias.cjs +32 -0
  78. package/singlestore-core/alias.cjs.map +1 -0
  79. package/singlestore-core/alias.d.cts +4 -0
  80. package/singlestore-core/alias.d.ts +4 -0
  81. package/singlestore-core/alias.js +8 -0
  82. package/singlestore-core/alias.js.map +1 -0
  83. package/singlestore-core/columns/all.cjs +80 -0
  84. package/singlestore-core/columns/all.cjs.map +1 -0
  85. package/singlestore-core/columns/all.d.cts +51 -0
  86. package/singlestore-core/columns/all.d.ts +51 -0
  87. package/singlestore-core/columns/all.js +56 -0
  88. package/singlestore-core/columns/all.js.map +1 -0
  89. package/singlestore-core/columns/bigint.cjs +96 -0
  90. package/singlestore-core/columns/bigint.cjs.map +1 -0
  91. package/singlestore-core/columns/bigint.d.cts +54 -0
  92. package/singlestore-core/columns/bigint.d.ts +54 -0
  93. package/singlestore-core/columns/bigint.js +68 -0
  94. package/singlestore-core/columns/bigint.js.map +1 -0
  95. package/singlestore-core/columns/binary.cjs +60 -0
  96. package/singlestore-core/columns/binary.cjs.map +1 -0
  97. package/singlestore-core/columns/binary.d.cts +28 -0
  98. package/singlestore-core/columns/binary.d.ts +28 -0
  99. package/singlestore-core/columns/binary.js +34 -0
  100. package/singlestore-core/columns/binary.js.map +1 -0
  101. package/singlestore-core/columns/boolean.cjs +62 -0
  102. package/singlestore-core/columns/boolean.cjs.map +1 -0
  103. package/singlestore-core/columns/boolean.d.cts +24 -0
  104. package/singlestore-core/columns/boolean.d.ts +24 -0
  105. package/singlestore-core/columns/boolean.js +36 -0
  106. package/singlestore-core/columns/boolean.js.map +1 -0
  107. package/singlestore-core/columns/char.cjs +62 -0
  108. package/singlestore-core/columns/char.cjs.map +1 -0
  109. package/singlestore-core/columns/char.d.cts +31 -0
  110. package/singlestore-core/columns/char.d.ts +31 -0
  111. package/singlestore-core/columns/char.js +36 -0
  112. package/singlestore-core/columns/char.js.map +1 -0
  113. package/singlestore-core/columns/common.cjs +82 -0
  114. package/singlestore-core/columns/common.cjs.map +1 -0
  115. package/singlestore-core/columns/common.d.cts +42 -0
  116. package/singlestore-core/columns/common.d.ts +42 -0
  117. package/singlestore-core/columns/common.js +55 -0
  118. package/singlestore-core/columns/common.js.map +1 -0
  119. package/singlestore-core/columns/custom.cjs +77 -0
  120. package/singlestore-core/columns/custom.cjs.map +1 -0
  121. package/singlestore-core/columns/custom.d.cts +156 -0
  122. package/singlestore-core/columns/custom.d.ts +156 -0
  123. package/singlestore-core/columns/custom.js +51 -0
  124. package/singlestore-core/columns/custom.js.map +1 -0
  125. package/singlestore-core/columns/date.cjs +93 -0
  126. package/singlestore-core/columns/date.cjs.map +1 -0
  127. package/singlestore-core/columns/date.common.cjs +48 -0
  128. package/singlestore-core/columns/date.common.cjs.map +1 -0
  129. package/singlestore-core/columns/date.common.d.cts +16 -0
  130. package/singlestore-core/columns/date.common.d.ts +16 -0
  131. package/singlestore-core/columns/date.common.js +23 -0
  132. package/singlestore-core/columns/date.common.js.map +1 -0
  133. package/singlestore-core/columns/date.d.cts +53 -0
  134. package/singlestore-core/columns/date.d.ts +53 -0
  135. package/singlestore-core/columns/date.js +65 -0
  136. package/singlestore-core/columns/date.js.map +1 -0
  137. package/singlestore-core/columns/datetime.cjs +106 -0
  138. package/singlestore-core/columns/datetime.cjs.map +1 -0
  139. package/singlestore-core/columns/datetime.d.cts +54 -0
  140. package/singlestore-core/columns/datetime.d.ts +54 -0
  141. package/singlestore-core/columns/datetime.js +78 -0
  142. package/singlestore-core/columns/datetime.js.map +1 -0
  143. package/singlestore-core/columns/decimal.cjs +76 -0
  144. package/singlestore-core/columns/decimal.cjs.map +1 -0
  145. package/singlestore-core/columns/decimal.d.cts +32 -0
  146. package/singlestore-core/columns/decimal.d.ts +32 -0
  147. package/singlestore-core/columns/decimal.js +50 -0
  148. package/singlestore-core/columns/decimal.js.map +1 -0
  149. package/singlestore-core/columns/double.cjs +72 -0
  150. package/singlestore-core/columns/double.cjs.map +1 -0
  151. package/singlestore-core/columns/double.d.cts +32 -0
  152. package/singlestore-core/columns/double.d.ts +32 -0
  153. package/singlestore-core/columns/double.js +46 -0
  154. package/singlestore-core/columns/double.js.map +1 -0
  155. package/singlestore-core/columns/enum.cjs +67 -0
  156. package/singlestore-core/columns/enum.cjs.map +1 -0
  157. package/singlestore-core/columns/enum.d.cts +31 -0
  158. package/singlestore-core/columns/enum.d.ts +31 -0
  159. package/singlestore-core/columns/enum.js +41 -0
  160. package/singlestore-core/columns/enum.js.map +1 -0
  161. package/singlestore-core/columns/float.cjs +72 -0
  162. package/singlestore-core/columns/float.cjs.map +1 -0
  163. package/singlestore-core/columns/float.d.cts +32 -0
  164. package/singlestore-core/columns/float.d.ts +32 -0
  165. package/singlestore-core/columns/float.js +46 -0
  166. package/singlestore-core/columns/float.js.map +1 -0
  167. package/singlestore-core/columns/index.cjs +71 -0
  168. package/singlestore-core/columns/index.cjs.map +1 -0
  169. package/singlestore-core/columns/index.d.cts +25 -0
  170. package/singlestore-core/columns/index.d.ts +25 -0
  171. package/singlestore-core/columns/index.js +26 -0
  172. package/singlestore-core/columns/index.js.map +1 -0
  173. package/singlestore-core/columns/int.cjs +65 -0
  174. package/singlestore-core/columns/int.cjs.map +1 -0
  175. package/singlestore-core/columns/int.d.cts +28 -0
  176. package/singlestore-core/columns/int.d.ts +28 -0
  177. package/singlestore-core/columns/int.js +39 -0
  178. package/singlestore-core/columns/int.js.map +1 -0
  179. package/singlestore-core/columns/json.cjs +59 -0
  180. package/singlestore-core/columns/json.cjs.map +1 -0
  181. package/singlestore-core/columns/json.d.cts +24 -0
  182. package/singlestore-core/columns/json.d.ts +24 -0
  183. package/singlestore-core/columns/json.js +33 -0
  184. package/singlestore-core/columns/json.js.map +1 -0
  185. package/singlestore-core/columns/mediumint.cjs +65 -0
  186. package/singlestore-core/columns/mediumint.cjs.map +1 -0
  187. package/singlestore-core/columns/mediumint.d.cts +26 -0
  188. package/singlestore-core/columns/mediumint.d.ts +26 -0
  189. package/singlestore-core/columns/mediumint.js +39 -0
  190. package/singlestore-core/columns/mediumint.js.map +1 -0
  191. package/singlestore-core/columns/real.cjs +68 -0
  192. package/singlestore-core/columns/real.cjs.map +1 -0
  193. package/singlestore-core/columns/real.d.cts +30 -0
  194. package/singlestore-core/columns/real.d.ts +30 -0
  195. package/singlestore-core/columns/real.js +42 -0
  196. package/singlestore-core/columns/real.js.map +1 -0
  197. package/singlestore-core/columns/serial.cjs +64 -0
  198. package/singlestore-core/columns/serial.cjs.map +1 -0
  199. package/singlestore-core/columns/serial.d.cts +24 -0
  200. package/singlestore-core/columns/serial.d.ts +24 -0
  201. package/singlestore-core/columns/serial.js +38 -0
  202. package/singlestore-core/columns/serial.js.map +1 -0
  203. package/singlestore-core/columns/smallint.cjs +65 -0
  204. package/singlestore-core/columns/smallint.cjs.map +1 -0
  205. package/singlestore-core/columns/smallint.d.cts +26 -0
  206. package/singlestore-core/columns/smallint.d.ts +26 -0
  207. package/singlestore-core/columns/smallint.js +39 -0
  208. package/singlestore-core/columns/smallint.js.map +1 -0
  209. package/singlestore-core/columns/text.cjs +80 -0
  210. package/singlestore-core/columns/text.cjs.map +1 -0
  211. package/singlestore-core/columns/text.d.cts +46 -0
  212. package/singlestore-core/columns/text.d.ts +46 -0
  213. package/singlestore-core/columns/text.js +51 -0
  214. package/singlestore-core/columns/text.js.map +1 -0
  215. package/singlestore-core/columns/time.cjs +56 -0
  216. package/singlestore-core/columns/time.cjs.map +1 -0
  217. package/singlestore-core/columns/time.d.cts +23 -0
  218. package/singlestore-core/columns/time.d.ts +23 -0
  219. package/singlestore-core/columns/time.js +30 -0
  220. package/singlestore-core/columns/time.js.map +1 -0
  221. package/singlestore-core/columns/timestamp.cjs +97 -0
  222. package/singlestore-core/columns/timestamp.cjs.map +1 -0
  223. package/singlestore-core/columns/timestamp.d.cts +49 -0
  224. package/singlestore-core/columns/timestamp.d.ts +49 -0
  225. package/singlestore-core/columns/timestamp.js +69 -0
  226. package/singlestore-core/columns/timestamp.js.map +1 -0
  227. package/singlestore-core/columns/tinyint.cjs +65 -0
  228. package/singlestore-core/columns/tinyint.cjs.map +1 -0
  229. package/singlestore-core/columns/tinyint.d.cts +26 -0
  230. package/singlestore-core/columns/tinyint.d.ts +26 -0
  231. package/singlestore-core/columns/tinyint.js +39 -0
  232. package/singlestore-core/columns/tinyint.js.map +1 -0
  233. package/singlestore-core/columns/varbinary.cjs +61 -0
  234. package/singlestore-core/columns/varbinary.cjs.map +1 -0
  235. package/singlestore-core/columns/varbinary.d.cts +26 -0
  236. package/singlestore-core/columns/varbinary.d.ts +26 -0
  237. package/singlestore-core/columns/varbinary.js +35 -0
  238. package/singlestore-core/columns/varbinary.js.map +1 -0
  239. package/singlestore-core/columns/varchar.cjs +63 -0
  240. package/singlestore-core/columns/varchar.cjs.map +1 -0
  241. package/singlestore-core/columns/varchar.d.cts +29 -0
  242. package/singlestore-core/columns/varchar.d.ts +29 -0
  243. package/singlestore-core/columns/varchar.js +37 -0
  244. package/singlestore-core/columns/varchar.js.map +1 -0
  245. package/singlestore-core/columns/year.cjs +56 -0
  246. package/singlestore-core/columns/year.cjs.map +1 -0
  247. package/singlestore-core/columns/year.d.cts +23 -0
  248. package/singlestore-core/columns/year.d.ts +23 -0
  249. package/singlestore-core/columns/year.js +30 -0
  250. package/singlestore-core/columns/year.js.map +1 -0
  251. package/singlestore-core/db.cjs +261 -0
  252. package/singlestore-core/db.cjs.map +1 -0
  253. package/singlestore-core/db.d.cts +231 -0
  254. package/singlestore-core/db.d.ts +231 -0
  255. package/singlestore-core/db.js +242 -0
  256. package/singlestore-core/db.js.map +1 -0
  257. package/singlestore-core/dialect.cjs +607 -0
  258. package/singlestore-core/dialect.cjs.map +1 -0
  259. package/singlestore-core/dialect.d.cts +64 -0
  260. package/singlestore-core/dialect.d.ts +64 -0
  261. package/singlestore-core/dialect.js +589 -0
  262. package/singlestore-core/dialect.js.map +1 -0
  263. package/singlestore-core/expressions.cjs +49 -0
  264. package/singlestore-core/expressions.cjs.map +1 -0
  265. package/singlestore-core/expressions.d.cts +8 -0
  266. package/singlestore-core/expressions.d.ts +8 -0
  267. package/singlestore-core/expressions.js +22 -0
  268. package/singlestore-core/expressions.js.map +1 -0
  269. package/singlestore-core/index.cjs +47 -0
  270. package/singlestore-core/index.cjs.map +1 -0
  271. package/singlestore-core/index.d.cts +13 -0
  272. package/singlestore-core/index.d.ts +13 -0
  273. package/singlestore-core/index.js +14 -0
  274. package/singlestore-core/index.js.map +1 -0
  275. package/singlestore-core/indexes.cjs +88 -0
  276. package/singlestore-core/indexes.cjs.map +1 -0
  277. package/singlestore-core/indexes.d.cts +62 -0
  278. package/singlestore-core/indexes.d.ts +62 -0
  279. package/singlestore-core/indexes.js +60 -0
  280. package/singlestore-core/indexes.js.map +1 -0
  281. package/singlestore-core/primary-keys.cjs +68 -0
  282. package/singlestore-core/primary-keys.cjs.map +1 -0
  283. package/singlestore-core/primary-keys.d.cts +30 -0
  284. package/singlestore-core/primary-keys.d.ts +30 -0
  285. package/singlestore-core/primary-keys.js +42 -0
  286. package/singlestore-core/primary-keys.js.map +1 -0
  287. package/singlestore-core/query-builders/count.cjs +73 -0
  288. package/singlestore-core/query-builders/count.cjs.map +1 -0
  289. package/singlestore-core/query-builders/count.d.cts +25 -0
  290. package/singlestore-core/query-builders/count.d.ts +25 -0
  291. package/singlestore-core/query-builders/count.js +49 -0
  292. package/singlestore-core/query-builders/count.js.map +1 -0
  293. package/singlestore-core/query-builders/delete.cjs +123 -0
  294. package/singlestore-core/query-builders/delete.cjs.map +1 -0
  295. package/singlestore-core/query-builders/delete.d.cts +83 -0
  296. package/singlestore-core/query-builders/delete.d.ts +83 -0
  297. package/singlestore-core/query-builders/delete.js +99 -0
  298. package/singlestore-core/query-builders/delete.js.map +1 -0
  299. package/singlestore-core/query-builders/index.cjs +33 -0
  300. package/singlestore-core/query-builders/index.cjs.map +1 -0
  301. package/singlestore-core/query-builders/index.d.cts +6 -0
  302. package/singlestore-core/query-builders/index.d.ts +6 -0
  303. package/singlestore-core/query-builders/index.js +7 -0
  304. package/singlestore-core/query-builders/index.js.map +1 -0
  305. package/singlestore-core/query-builders/insert.cjs +146 -0
  306. package/singlestore-core/query-builders/insert.cjs.map +1 -0
  307. package/singlestore-core/query-builders/insert.d.cts +106 -0
  308. package/singlestore-core/query-builders/insert.d.ts +106 -0
  309. package/singlestore-core/query-builders/insert.js +121 -0
  310. package/singlestore-core/query-builders/insert.js.map +1 -0
  311. package/singlestore-core/query-builders/query-builder.cjs +99 -0
  312. package/singlestore-core/query-builders/query-builder.cjs.map +1 -0
  313. package/singlestore-core/query-builders/query-builder.d.cts +33 -0
  314. package/singlestore-core/query-builders/query-builder.d.ts +33 -0
  315. package/singlestore-core/query-builders/query-builder.js +75 -0
  316. package/singlestore-core/query-builders/query-builder.js.map +1 -0
  317. package/singlestore-core/query-builders/query.cjs +126 -0
  318. package/singlestore-core/query-builders/query.cjs.map +1 -0
  319. package/singlestore-core/query-builders/query.d.cts +42 -0
  320. package/singlestore-core/query-builders/query.d.ts +42 -0
  321. package/singlestore-core/query-builders/query.js +103 -0
  322. package/singlestore-core/query-builders/query.js.map +1 -0
  323. package/singlestore-core/query-builders/select.cjs +687 -0
  324. package/singlestore-core/query-builders/select.cjs.map +1 -0
  325. package/singlestore-core/query-builders/select.d.cts +585 -0
  326. package/singlestore-core/query-builders/select.d.ts +585 -0
  327. package/singlestore-core/query-builders/select.js +662 -0
  328. package/singlestore-core/query-builders/select.js.map +1 -0
  329. package/singlestore-core/query-builders/select.types.cjs +17 -0
  330. package/singlestore-core/query-builders/select.types.cjs.map +1 -0
  331. package/singlestore-core/query-builders/select.types.d.cts +137 -0
  332. package/singlestore-core/query-builders/select.types.d.ts +137 -0
  333. package/singlestore-core/query-builders/select.types.js +1 -0
  334. package/singlestore-core/query-builders/select.types.js.map +1 -0
  335. package/singlestore-core/query-builders/update.cjs +147 -0
  336. package/singlestore-core/query-builders/update.cjs.map +1 -0
  337. package/singlestore-core/query-builders/update.d.cts +102 -0
  338. package/singlestore-core/query-builders/update.d.ts +102 -0
  339. package/singlestore-core/query-builders/update.js +122 -0
  340. package/singlestore-core/query-builders/update.js.map +1 -0
  341. package/singlestore-core/schema.cjs +56 -0
  342. package/singlestore-core/schema.cjs.map +1 -0
  343. package/singlestore-core/schema.d.cts +22 -0
  344. package/singlestore-core/schema.d.ts +22 -0
  345. package/singlestore-core/schema.js +29 -0
  346. package/singlestore-core/schema.js.map +1 -0
  347. package/singlestore-core/session.cjs +87 -0
  348. package/singlestore-core/session.cjs.map +1 -0
  349. package/singlestore-core/session.d.cts +66 -0
  350. package/singlestore-core/session.d.ts +66 -0
  351. package/singlestore-core/session.js +61 -0
  352. package/singlestore-core/session.js.map +1 -0
  353. package/singlestore-core/subquery.cjs +17 -0
  354. package/singlestore-core/subquery.cjs.map +1 -0
  355. package/singlestore-core/subquery.d.cts +5 -0
  356. package/singlestore-core/subquery.d.ts +5 -0
  357. package/singlestore-core/subquery.js +1 -0
  358. package/singlestore-core/subquery.js.map +1 -0
  359. package/singlestore-core/table.cjs +73 -0
  360. package/singlestore-core/table.cjs.map +1 -0
  361. package/singlestore-core/table.d.cts +40 -0
  362. package/singlestore-core/table.d.ts +40 -0
  363. package/singlestore-core/table.js +46 -0
  364. package/singlestore-core/table.js.map +1 -0
  365. package/singlestore-core/unique-constraint.cjs +82 -0
  366. package/singlestore-core/unique-constraint.cjs.map +1 -0
  367. package/singlestore-core/unique-constraint.d.cts +24 -0
  368. package/singlestore-core/unique-constraint.d.ts +24 -0
  369. package/singlestore-core/unique-constraint.js +54 -0
  370. package/singlestore-core/unique-constraint.js.map +1 -0
  371. package/singlestore-core/utils.cjs +65 -0
  372. package/singlestore-core/utils.cjs.map +1 -0
  373. package/singlestore-core/utils.d.cts +13 -0
  374. package/singlestore-core/utils.d.ts +13 -0
  375. package/singlestore-core/utils.js +41 -0
  376. package/singlestore-core/utils.js.map +1 -0
  377. package/singlestore-core/view-base.cjs +33 -0
  378. package/singlestore-core/view-base.cjs.map +1 -0
  379. package/singlestore-core/view-base.d.cts +9 -0
  380. package/singlestore-core/view-base.d.ts +9 -0
  381. package/singlestore-core/view-base.js +9 -0
  382. package/singlestore-core/view-base.js.map +1 -0
  383. package/singlestore-core/view-common.cjs +29 -0
  384. package/singlestore-core/view-common.cjs.map +1 -0
  385. package/singlestore-core/view-common.d.cts +1 -0
  386. package/singlestore-core/view-common.d.ts +1 -0
  387. package/singlestore-core/view-common.js +5 -0
  388. package/singlestore-core/view-common.js.map +1 -0
  389. package/singlestore-core/view.cjs +146 -0
  390. package/singlestore-core/view.cjs.map +1 -0
  391. package/singlestore-core/view.d.cts +65 -0
  392. package/singlestore-core/view.d.ts +65 -0
  393. package/singlestore-core/view.js +119 -0
  394. package/singlestore-core/view.js.map +1 -0
  395. package/singlestore-proxy/driver.cjs +62 -0
  396. package/singlestore-proxy/driver.cjs.map +1 -0
  397. package/singlestore-proxy/driver.d.cts +13 -0
  398. package/singlestore-proxy/driver.d.ts +13 -0
  399. package/singlestore-proxy/driver.js +42 -0
  400. package/singlestore-proxy/driver.js.map +1 -0
  401. package/singlestore-proxy/index.cjs +25 -0
  402. package/singlestore-proxy/index.cjs.map +1 -0
  403. package/singlestore-proxy/index.d.cts +2 -0
  404. package/singlestore-proxy/index.d.ts +2 -0
  405. package/singlestore-proxy/index.js +3 -0
  406. package/singlestore-proxy/index.js.map +1 -0
  407. package/singlestore-proxy/migrator.cjs +60 -0
  408. package/singlestore-proxy/migrator.cjs.map +1 -0
  409. package/singlestore-proxy/migrator.d.cts +4 -0
  410. package/singlestore-proxy/migrator.d.ts +4 -0
  411. package/singlestore-proxy/migrator.js +36 -0
  412. package/singlestore-proxy/migrator.js.map +1 -0
  413. package/singlestore-proxy/session.cjs +127 -0
  414. package/singlestore-proxy/session.cjs.map +1 -0
  415. package/singlestore-proxy/session.d.cts +50 -0
  416. package/singlestore-proxy/session.d.ts +50 -0
  417. package/singlestore-proxy/session.js +101 -0
  418. package/singlestore-proxy/session.js.map +1 -0
  419. package/sql/sql.cjs +8 -0
  420. package/sql/sql.cjs.map +1 -1
  421. package/sql/sql.d.cts +10 -2
  422. package/sql/sql.d.ts +10 -2
  423. package/sql/sql.js +7 -0
  424. package/sql/sql.js.map +1 -1
  425. package/sqlite-core/columns/blob.cjs +16 -2
  426. package/sqlite-core/columns/blob.cjs.map +1 -1
  427. package/sqlite-core/columns/blob.d.cts +2 -2
  428. package/sqlite-core/columns/blob.d.ts +2 -2
  429. package/sqlite-core/columns/blob.js +16 -2
  430. package/sqlite-core/columns/blob.js.map +1 -1
  431. package/sqlite-core/utils.d.cts +1 -2
  432. package/sqlite-core/utils.d.ts +1 -2
  433. package/sqlite-core/view.cjs.map +1 -1
  434. package/sqlite-core/view.d.cts +2 -3
  435. package/sqlite-core/view.d.ts +2 -3
  436. package/sqlite-core/view.js.map +1 -1
  437. package/utils.cjs +5 -0
  438. package/utils.cjs.map +1 -1
  439. package/utils.d.cts +2 -1
  440. package/utils.d.ts +2 -1
  441. package/utils.js +4 -0
  442. package/utils.js.map +1 -1
  443. package/version.cjs +1 -1
  444. package/version.d.cts +1 -1
  445. package/version.d.ts +1 -1
  446. package/version.js +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/singlestore/session.ts"],"sourcesContent":["import type { Connection as CallbackConnection } from 'mysql2';\nimport type {\n\tConnection,\n\tFieldPacket,\n\tOkPacket,\n\tPool,\n\tPoolConnection,\n\tQueryOptions,\n\tResultSetHeader,\n\tRowDataPacket,\n} from 'mysql2/promise';\nimport { once } from 'node:events';\nimport { Column } from '~/column.ts';\nimport { entityKind, is } from '~/entity.ts';\nimport type { Logger } from '~/logger.ts';\nimport { NoopLogger } from '~/logger.ts';\nimport type { RelationalSchemaConfig, TablesRelationalConfig } from '~/relations.ts';\nimport type { SingleStoreDialect } from '~/singlestore-core/dialect.ts';\nimport type { SelectedFieldsOrdered } from '~/singlestore-core/query-builders/select.types.ts';\nimport {\n\ttype PreparedQueryKind,\n\tSingleStorePreparedQuery,\n\ttype SingleStorePreparedQueryConfig,\n\ttype SingleStorePreparedQueryHKT,\n\ttype SingleStoreQueryResultHKT,\n\tSingleStoreSession,\n\tSingleStoreTransaction,\n\ttype SingleStoreTransactionConfig,\n} from '~/singlestore-core/session.ts';\nimport type { Query, SQL } from '~/sql/sql.ts';\nimport { fillPlaceholders, sql } from '~/sql/sql.ts';\nimport { type Assume, mapResultRow } from '~/utils.ts';\n\nexport type SingleStoreDriverClient = Pool | Connection;\n\nexport type SingleStoreRawQueryResult = [ResultSetHeader, FieldPacket[]];\nexport type SingleStoreQueryResultType = RowDataPacket[][] | RowDataPacket[] | OkPacket | OkPacket[] | ResultSetHeader;\nexport type SingleStoreQueryResult<\n\tT = any,\n> = [T extends ResultSetHeader ? T : T[], FieldPacket[]];\n\nexport class SingleStoreDriverPreparedQuery<T extends SingleStorePreparedQueryConfig>\n\textends SingleStorePreparedQuery<T>\n{\n\tstatic override readonly [entityKind]: string = 'SingleStoreDriverPreparedQuery';\n\n\tprivate rawQuery: QueryOptions;\n\tprivate query: QueryOptions;\n\n\tconstructor(\n\t\tprivate client: SingleStoreDriverClient,\n\t\tqueryString: string,\n\t\tprivate params: unknown[],\n\t\tprivate logger: Logger,\n\t\tprivate fields: SelectedFieldsOrdered | undefined,\n\t\tprivate customResultMapper?: (rows: unknown[][]) => T['execute'],\n\t\t// Keys that were used in $default and the value that was generated for them\n\t\tprivate generatedIds?: Record<string, unknown>[],\n\t\t// Keys that should be returned, it has the column with all properries + key from object\n\t\tprivate returningIds?: SelectedFieldsOrdered,\n\t) {\n\t\tsuper();\n\t\tthis.rawQuery = {\n\t\t\tsql: queryString,\n\t\t\t// rowsAsArray: true,\n\t\t\ttypeCast: function(field: any, next: any) {\n\t\t\t\tif (field.type === 'TIMESTAMP' || field.type === 'DATETIME' || field.type === 'DATE') {\n\t\t\t\t\treturn field.string();\n\t\t\t\t}\n\t\t\t\treturn next();\n\t\t\t},\n\t\t};\n\t\tthis.query = {\n\t\t\tsql: queryString,\n\t\t\trowsAsArray: true,\n\t\t\ttypeCast: function(field: any, next: any) {\n\t\t\t\tif (field.type === 'TIMESTAMP' || field.type === 'DATETIME' || field.type === 'DATE') {\n\t\t\t\t\treturn field.string();\n\t\t\t\t}\n\t\t\t\treturn next();\n\t\t\t},\n\t\t};\n\t}\n\n\tasync execute(placeholderValues: Record<string, unknown> = {}): Promise<T['execute']> {\n\t\tconst params = fillPlaceholders(this.params, placeholderValues);\n\n\t\tthis.logger.logQuery(this.rawQuery.sql, params);\n\n\t\tconst { fields, client, rawQuery, query, joinsNotNullableMap, customResultMapper, returningIds, generatedIds } =\n\t\t\tthis;\n\t\tif (!fields && !customResultMapper) {\n\t\t\tconst res = await client.query<any>(rawQuery, params);\n\t\t\tconst insertId = res[0].insertId;\n\t\t\tconst affectedRows = res[0].affectedRows;\n\t\t\t// for each row, I need to check keys from\n\t\t\tif (returningIds) {\n\t\t\t\tconst returningResponse = [];\n\t\t\t\tlet j = 0;\n\t\t\t\tfor (let i = insertId; i < insertId + affectedRows; i++) {\n\t\t\t\t\tfor (const column of returningIds) {\n\t\t\t\t\t\tconst key = returningIds[0]!.path[0]!;\n\t\t\t\t\t\tif (is(column.field, Column)) {\n\t\t\t\t\t\t\t// @ts-ignore\n\t\t\t\t\t\t\tif (column.field.primary && column.field.autoIncrement) {\n\t\t\t\t\t\t\t\treturningResponse.push({ [key]: i });\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (column.field.defaultFn && generatedIds) {\n\t\t\t\t\t\t\t\t// generatedIds[rowIdx][key]\n\t\t\t\t\t\t\t\treturningResponse.push({ [key]: generatedIds[j]![key] });\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tj++;\n\t\t\t\t}\n\n\t\t\t\treturn returningResponse;\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\n\t\tconst result = await client.query<any[]>(query, params);\n\t\tconst rows = result[0];\n\n\t\tif (customResultMapper) {\n\t\t\treturn customResultMapper(rows);\n\t\t}\n\n\t\treturn rows.map((row) => mapResultRow<T['execute']>(fields!, row, joinsNotNullableMap));\n\t}\n\n\tasync *iterator(\n\t\tplaceholderValues: Record<string, unknown> = {},\n\t): AsyncGenerator<T['execute'] extends any[] ? T['execute'][number] : T['execute']> {\n\t\tconst params = fillPlaceholders(this.params, placeholderValues);\n\t\tconst conn = ((isPool(this.client) ? await this.client.getConnection() : this.client) as {} as {\n\t\t\tconnection: CallbackConnection;\n\t\t}).connection;\n\n\t\tconst { fields, query, rawQuery, joinsNotNullableMap, client, customResultMapper } = this;\n\t\tconst hasRowsMapper = Boolean(fields || customResultMapper);\n\t\tconst driverQuery = hasRowsMapper ? conn.query(query, params) : conn.query(rawQuery, params);\n\n\t\tconst stream = driverQuery.stream();\n\n\t\tfunction dataListener() {\n\t\t\tstream.pause();\n\t\t}\n\n\t\tstream.on('data', dataListener);\n\n\t\ttry {\n\t\t\tconst onEnd = once(stream, 'end');\n\t\t\tconst onError = once(stream, 'error');\n\n\t\t\twhile (true) {\n\t\t\t\tstream.resume();\n\t\t\t\tconst row = await Promise.race([onEnd, onError, new Promise((resolve) => stream.once('data', resolve))]);\n\t\t\t\tif (row === undefined || (Array.isArray(row) && row.length === 0)) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (row instanceof Error) { // eslint-disable-line no-instanceof/no-instanceof\n\t\t\t\t\tthrow row;\n\t\t\t\t} else {\n\t\t\t\t\tif (hasRowsMapper) {\n\t\t\t\t\t\tif (customResultMapper) {\n\t\t\t\t\t\t\tconst mappedRow = customResultMapper([row as unknown[]]);\n\t\t\t\t\t\t\tyield (Array.isArray(mappedRow) ? mappedRow[0] : mappedRow);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tyield mapResultRow(fields!, row as unknown[], joinsNotNullableMap);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tyield row as T['execute'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} finally {\n\t\t\tstream.off('data', dataListener);\n\t\t\tif (isPool(client)) {\n\t\t\t\tconn.end();\n\t\t\t}\n\t\t}\n\t}\n}\n\nexport interface SingleStoreDriverSessionOptions {\n\tlogger?: Logger;\n}\n\nexport class SingleStoreDriverSession<\n\tTFullSchema extends Record<string, unknown>,\n\tTSchema extends TablesRelationalConfig,\n> extends SingleStoreSession<SingleStoreQueryResultHKT, SingleStoreDriverPreparedQueryHKT, TFullSchema, TSchema> {\n\tstatic override readonly [entityKind]: string = 'SingleStoreDriverSession';\n\n\tprivate logger: Logger;\n\n\tconstructor(\n\t\tprivate client: SingleStoreDriverClient,\n\t\tdialect: SingleStoreDialect,\n\t\tprivate schema: RelationalSchemaConfig<TSchema> | undefined,\n\t\tprivate options: SingleStoreDriverSessionOptions,\n\t) {\n\t\tsuper(dialect);\n\t\tthis.logger = options.logger ?? new NoopLogger();\n\t}\n\n\tprepareQuery<T extends SingleStorePreparedQueryConfig>(\n\t\tquery: Query,\n\t\tfields: SelectedFieldsOrdered | undefined,\n\t\tcustomResultMapper?: (rows: unknown[][]) => T['execute'],\n\t\tgeneratedIds?: Record<string, unknown>[],\n\t\treturningIds?: SelectedFieldsOrdered,\n\t): PreparedQueryKind<SingleStoreDriverPreparedQueryHKT, T> {\n\t\t// Add returningId fields\n\t\t// Each driver gets them from response from database\n\t\treturn new SingleStoreDriverPreparedQuery(\n\t\t\tthis.client,\n\t\t\tquery.sql,\n\t\t\tquery.params,\n\t\t\tthis.logger,\n\t\t\tfields,\n\t\t\tcustomResultMapper,\n\t\t\tgeneratedIds,\n\t\t\treturningIds,\n\t\t) as PreparedQueryKind<SingleStoreDriverPreparedQueryHKT, T>;\n\t}\n\n\t/**\n\t * @internal\n\t * What is its purpose?\n\t */\n\tasync query(query: string, params: unknown[]): Promise<SingleStoreQueryResult> {\n\t\tthis.logger.logQuery(query, params);\n\t\tconst result = await this.client.query({\n\t\t\tsql: query,\n\t\t\tvalues: params,\n\t\t\trowsAsArray: true,\n\t\t\ttypeCast: function(field: any, next: any) {\n\t\t\t\tif (field.type === 'TIMESTAMP' || field.type === 'DATETIME' || field.type === 'DATE') {\n\t\t\t\t\treturn field.string();\n\t\t\t\t}\n\t\t\t\treturn next();\n\t\t\t},\n\t\t});\n\t\treturn result;\n\t}\n\n\toverride all<T = unknown>(query: SQL): Promise<T[]> {\n\t\tconst querySql = this.dialect.sqlToQuery(query);\n\t\tthis.logger.logQuery(querySql.sql, querySql.params);\n\t\treturn this.client.execute(querySql.sql, querySql.params).then((result) => result[0]) as Promise<T[]>;\n\t}\n\n\toverride async transaction<T>(\n\t\ttransaction: (tx: SingleStoreDriverTransaction<TFullSchema, TSchema>) => Promise<T>,\n\t\tconfig?: SingleStoreTransactionConfig,\n\t): Promise<T> {\n\t\tconst session = isPool(this.client)\n\t\t\t? new SingleStoreDriverSession(\n\t\t\t\tawait this.client.getConnection(),\n\t\t\t\tthis.dialect,\n\t\t\t\tthis.schema,\n\t\t\t\tthis.options,\n\t\t\t)\n\t\t\t: this;\n\t\tconst tx = new SingleStoreDriverTransaction<TFullSchema, TSchema>(\n\t\t\tthis.dialect,\n\t\t\tsession as SingleStoreSession<any, any, any, any>,\n\t\t\tthis.schema,\n\t\t\t0,\n\t\t);\n\t\tif (config) {\n\t\t\tconst setTransactionConfigSql = this.getSetTransactionSQL(config);\n\t\t\tif (setTransactionConfigSql) {\n\t\t\t\tawait tx.execute(setTransactionConfigSql);\n\t\t\t}\n\t\t\tconst startTransactionSql = this.getStartTransactionSQL(config);\n\t\t\tawait (startTransactionSql ? tx.execute(startTransactionSql) : tx.execute(sql`begin`));\n\t\t} else {\n\t\t\tawait tx.execute(sql`begin`);\n\t\t}\n\t\ttry {\n\t\t\tconst result = await transaction(tx);\n\t\t\tawait tx.execute(sql`commit`);\n\t\t\treturn result;\n\t\t} catch (err) {\n\t\t\tawait tx.execute(sql`rollback`);\n\t\t\tthrow err;\n\t\t} finally {\n\t\t\tif (isPool(this.client)) {\n\t\t\t\t(session.client as PoolConnection).release();\n\t\t\t}\n\t\t}\n\t}\n}\n\nexport class SingleStoreDriverTransaction<\n\tTFullSchema extends Record<string, unknown>,\n\tTSchema extends TablesRelationalConfig,\n> extends SingleStoreTransaction<\n\tSingleStoreDriverQueryResultHKT,\n\tSingleStoreDriverPreparedQueryHKT,\n\tTFullSchema,\n\tTSchema\n> {\n\tstatic override readonly [entityKind]: string = 'SingleStoreDriverTransaction';\n\n\toverride async transaction<T>(\n\t\ttransaction: (tx: SingleStoreDriverTransaction<TFullSchema, TSchema>) => Promise<T>,\n\t): Promise<T> {\n\t\tconst savepointName = `sp${this.nestedIndex + 1}`;\n\t\tconst tx = new SingleStoreDriverTransaction<TFullSchema, TSchema>(\n\t\t\tthis.dialect,\n\t\t\tthis.session,\n\t\t\tthis.schema,\n\t\t\tthis.nestedIndex + 1,\n\t\t);\n\t\tawait tx.execute(sql.raw(`savepoint ${savepointName}`));\n\t\ttry {\n\t\t\tconst result = await transaction(tx);\n\t\t\tawait tx.execute(sql.raw(`release savepoint ${savepointName}`));\n\t\t\treturn result;\n\t\t} catch (err) {\n\t\t\tawait tx.execute(sql.raw(`rollback to savepoint ${savepointName}`));\n\t\t\tthrow err;\n\t\t}\n\t}\n}\n\nfunction isPool(client: SingleStoreDriverClient): client is Pool {\n\treturn 'getConnection' in client;\n}\n\nexport interface SingleStoreDriverQueryResultHKT extends SingleStoreQueryResultHKT {\n\ttype: SingleStoreRawQueryResult;\n}\n\nexport interface SingleStoreDriverPreparedQueryHKT extends SingleStorePreparedQueryHKT {\n\ttype: SingleStoreDriverPreparedQuery<Assume<this['config'], SingleStorePreparedQueryConfig>>;\n}\n"],"mappings":"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","names":[]}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var alias_exports = {};
20
+ __export(alias_exports, {
21
+ alias: () => alias
22
+ });
23
+ module.exports = __toCommonJS(alias_exports);
24
+ var import_alias = require("../alias.cjs");
25
+ function alias(table, alias2) {
26
+ return new Proxy(table, new import_alias.TableAliasProxyHandler(alias2, false));
27
+ }
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ alias
31
+ });
32
+ //# sourceMappingURL=alias.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/singlestore-core/alias.ts"],"sourcesContent":["import { TableAliasProxyHandler } from '~/alias.ts';\nimport type { BuildAliasTable } from './query-builders/select.types.ts';\nimport type { SingleStoreTable } from './table.ts';\n\nexport function alias<TTable extends SingleStoreTable, TAlias extends string>( // | SingleStoreViewBase\n\ttable: TTable,\n\talias: TAlias,\n): BuildAliasTable<TTable, TAlias> {\n\treturn new Proxy(table, new TableAliasProxyHandler(alias, false)) as any;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAuC;AAIhC,SAAS,MACf,OACAA,QACkC;AAClC,SAAO,IAAI,MAAM,OAAO,IAAI,oCAAuBA,QAAO,KAAK,CAAC;AACjE;","names":["alias"]}
@@ -0,0 +1,4 @@
1
+ import type { BuildAliasTable } from "./query-builders/select.types.cjs";
2
+ import type { SingleStoreTable } from "./table.cjs";
3
+ export declare function alias<TTable extends SingleStoreTable, TAlias extends string>(// | SingleStoreViewBase
4
+ table: TTable, alias: TAlias): BuildAliasTable<TTable, TAlias>;
@@ -0,0 +1,4 @@
1
+ import type { BuildAliasTable } from "./query-builders/select.types.js";
2
+ import type { SingleStoreTable } from "./table.js";
3
+ export declare function alias<TTable extends SingleStoreTable, TAlias extends string>(// | SingleStoreViewBase
4
+ table: TTable, alias: TAlias): BuildAliasTable<TTable, TAlias>;
@@ -0,0 +1,8 @@
1
+ import { TableAliasProxyHandler } from "../alias.js";
2
+ function alias(table, alias2) {
3
+ return new Proxy(table, new TableAliasProxyHandler(alias2, false));
4
+ }
5
+ export {
6
+ alias
7
+ };
8
+ //# sourceMappingURL=alias.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/singlestore-core/alias.ts"],"sourcesContent":["import { TableAliasProxyHandler } from '~/alias.ts';\nimport type { BuildAliasTable } from './query-builders/select.types.ts';\nimport type { SingleStoreTable } from './table.ts';\n\nexport function alias<TTable extends SingleStoreTable, TAlias extends string>( // | SingleStoreViewBase\n\ttable: TTable,\n\talias: TAlias,\n): BuildAliasTable<TTable, TAlias> {\n\treturn new Proxy(table, new TableAliasProxyHandler(alias, false)) as any;\n}\n"],"mappings":"AAAA,SAAS,8BAA8B;AAIhC,SAAS,MACf,OACAA,QACkC;AAClC,SAAO,IAAI,MAAM,OAAO,IAAI,uBAAuBA,QAAO,KAAK,CAAC;AACjE;","names":["alias"]}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var all_exports = {};
20
+ __export(all_exports, {
21
+ getSingleStoreColumnBuilders: () => getSingleStoreColumnBuilders
22
+ });
23
+ module.exports = __toCommonJS(all_exports);
24
+ var import_bigint = require("./bigint.cjs");
25
+ var import_binary = require("./binary.cjs");
26
+ var import_boolean = require("./boolean.cjs");
27
+ var import_char = require("./char.cjs");
28
+ var import_custom = require("./custom.cjs");
29
+ var import_date = require("./date.cjs");
30
+ var import_datetime = require("./datetime.cjs");
31
+ var import_decimal = require("./decimal.cjs");
32
+ var import_double = require("./double.cjs");
33
+ var import_enum = require("./enum.cjs");
34
+ var import_float = require("./float.cjs");
35
+ var import_int = require("./int.cjs");
36
+ var import_json = require("./json.cjs");
37
+ var import_mediumint = require("./mediumint.cjs");
38
+ var import_real = require("./real.cjs");
39
+ var import_serial = require("./serial.cjs");
40
+ var import_smallint = require("./smallint.cjs");
41
+ var import_text = require("./text.cjs");
42
+ var import_time = require("./time.cjs");
43
+ var import_timestamp = require("./timestamp.cjs");
44
+ var import_tinyint = require("./tinyint.cjs");
45
+ var import_varbinary = require("./varbinary.cjs");
46
+ var import_varchar = require("./varchar.cjs");
47
+ var import_year = require("./year.cjs");
48
+ function getSingleStoreColumnBuilders() {
49
+ return {
50
+ bigint: import_bigint.bigint,
51
+ binary: import_binary.binary,
52
+ boolean: import_boolean.boolean,
53
+ char: import_char.char,
54
+ customType: import_custom.customType,
55
+ date: import_date.date,
56
+ datetime: import_datetime.datetime,
57
+ decimal: import_decimal.decimal,
58
+ double: import_double.double,
59
+ singlestoreEnum: import_enum.singlestoreEnum,
60
+ float: import_float.float,
61
+ int: import_int.int,
62
+ json: import_json.json,
63
+ mediumint: import_mediumint.mediumint,
64
+ real: import_real.real,
65
+ serial: import_serial.serial,
66
+ smallint: import_smallint.smallint,
67
+ text: import_text.text,
68
+ time: import_time.time,
69
+ timestamp: import_timestamp.timestamp,
70
+ tinyint: import_tinyint.tinyint,
71
+ varbinary: import_varbinary.varbinary,
72
+ varchar: import_varchar.varchar,
73
+ year: import_year.year
74
+ };
75
+ }
76
+ // Annotate the CommonJS export names for ESM import in node:
77
+ 0 && (module.exports = {
78
+ getSingleStoreColumnBuilders
79
+ });
80
+ //# sourceMappingURL=all.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/singlestore-core/columns/all.ts"],"sourcesContent":["import { bigint } from './bigint.ts';\nimport { binary } from './binary.ts';\nimport { boolean } from './boolean.ts';\nimport { char } from './char.ts';\nimport { customType } from './custom.ts';\nimport { date } from './date.ts';\nimport { datetime } from './datetime.ts';\nimport { decimal } from './decimal.ts';\nimport { double } from './double.ts';\nimport { singlestoreEnum } from './enum.ts';\nimport { float } from './float.ts';\nimport { int } from './int.ts';\nimport { json } from './json.ts';\nimport { mediumint } from './mediumint.ts';\nimport { real } from './real.ts';\nimport { serial } from './serial.ts';\nimport { smallint } from './smallint.ts';\nimport { text } from './text.ts';\nimport { time } from './time.ts';\nimport { timestamp } from './timestamp.ts';\nimport { tinyint } from './tinyint.ts';\nimport { varbinary } from './varbinary.ts';\nimport { varchar } from './varchar.ts';\nimport { year } from './year.ts';\n\nexport function getSingleStoreColumnBuilders() {\n\treturn {\n\t\tbigint,\n\t\tbinary,\n\t\tboolean,\n\t\tchar,\n\t\tcustomType,\n\t\tdate,\n\t\tdatetime,\n\t\tdecimal,\n\t\tdouble,\n\t\tsinglestoreEnum,\n\t\tfloat,\n\t\tint,\n\t\tjson,\n\t\tmediumint,\n\t\treal,\n\t\tserial,\n\t\tsmallint,\n\t\ttext,\n\t\ttime,\n\t\ttimestamp,\n\t\ttinyint,\n\t\tvarbinary,\n\t\tvarchar,\n\t\tyear,\n\t};\n}\n\nexport type SingleStoreColumnBuilders = ReturnType<typeof getSingleStoreColumnBuilders>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAuB;AACvB,oBAAuB;AACvB,qBAAwB;AACxB,kBAAqB;AACrB,oBAA2B;AAC3B,kBAAqB;AACrB,sBAAyB;AACzB,qBAAwB;AACxB,oBAAuB;AACvB,kBAAgC;AAChC,mBAAsB;AACtB,iBAAoB;AACpB,kBAAqB;AACrB,uBAA0B;AAC1B,kBAAqB;AACrB,oBAAuB;AACvB,sBAAyB;AACzB,kBAAqB;AACrB,kBAAqB;AACrB,uBAA0B;AAC1B,qBAAwB;AACxB,uBAA0B;AAC1B,qBAAwB;AACxB,kBAAqB;AAEd,SAAS,+BAA+B;AAC9C,SAAO;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACD;","names":[]}
@@ -0,0 +1,51 @@
1
+ import { bigint } from "./bigint.cjs";
2
+ import { binary } from "./binary.cjs";
3
+ import { boolean } from "./boolean.cjs";
4
+ import { char } from "./char.cjs";
5
+ import { customType } from "./custom.cjs";
6
+ import { date } from "./date.cjs";
7
+ import { datetime } from "./datetime.cjs";
8
+ import { decimal } from "./decimal.cjs";
9
+ import { double } from "./double.cjs";
10
+ import { singlestoreEnum } from "./enum.cjs";
11
+ import { float } from "./float.cjs";
12
+ import { int } from "./int.cjs";
13
+ import { json } from "./json.cjs";
14
+ import { mediumint } from "./mediumint.cjs";
15
+ import { real } from "./real.cjs";
16
+ import { serial } from "./serial.cjs";
17
+ import { smallint } from "./smallint.cjs";
18
+ import { text } from "./text.cjs";
19
+ import { time } from "./time.cjs";
20
+ import { timestamp } from "./timestamp.cjs";
21
+ import { tinyint } from "./tinyint.cjs";
22
+ import { varbinary } from "./varbinary.cjs";
23
+ import { varchar } from "./varchar.cjs";
24
+ import { year } from "./year.cjs";
25
+ export declare function getSingleStoreColumnBuilders(): {
26
+ bigint: typeof bigint;
27
+ binary: typeof binary;
28
+ boolean: typeof boolean;
29
+ char: typeof char;
30
+ customType: typeof customType;
31
+ date: typeof date;
32
+ datetime: typeof datetime;
33
+ decimal: typeof decimal;
34
+ double: typeof double;
35
+ singlestoreEnum: typeof singlestoreEnum;
36
+ float: typeof float;
37
+ int: typeof int;
38
+ json: typeof json;
39
+ mediumint: typeof mediumint;
40
+ real: typeof real;
41
+ serial: typeof serial;
42
+ smallint: typeof smallint;
43
+ text: typeof text;
44
+ time: typeof time;
45
+ timestamp: typeof timestamp;
46
+ tinyint: typeof tinyint;
47
+ varbinary: typeof varbinary;
48
+ varchar: typeof varchar;
49
+ year: typeof year;
50
+ };
51
+ export type SingleStoreColumnBuilders = ReturnType<typeof getSingleStoreColumnBuilders>;
@@ -0,0 +1,51 @@
1
+ import { bigint } from "./bigint.js";
2
+ import { binary } from "./binary.js";
3
+ import { boolean } from "./boolean.js";
4
+ import { char } from "./char.js";
5
+ import { customType } from "./custom.js";
6
+ import { date } from "./date.js";
7
+ import { datetime } from "./datetime.js";
8
+ import { decimal } from "./decimal.js";
9
+ import { double } from "./double.js";
10
+ import { singlestoreEnum } from "./enum.js";
11
+ import { float } from "./float.js";
12
+ import { int } from "./int.js";
13
+ import { json } from "./json.js";
14
+ import { mediumint } from "./mediumint.js";
15
+ import { real } from "./real.js";
16
+ import { serial } from "./serial.js";
17
+ import { smallint } from "./smallint.js";
18
+ import { text } from "./text.js";
19
+ import { time } from "./time.js";
20
+ import { timestamp } from "./timestamp.js";
21
+ import { tinyint } from "./tinyint.js";
22
+ import { varbinary } from "./varbinary.js";
23
+ import { varchar } from "./varchar.js";
24
+ import { year } from "./year.js";
25
+ export declare function getSingleStoreColumnBuilders(): {
26
+ bigint: typeof bigint;
27
+ binary: typeof binary;
28
+ boolean: typeof boolean;
29
+ char: typeof char;
30
+ customType: typeof customType;
31
+ date: typeof date;
32
+ datetime: typeof datetime;
33
+ decimal: typeof decimal;
34
+ double: typeof double;
35
+ singlestoreEnum: typeof singlestoreEnum;
36
+ float: typeof float;
37
+ int: typeof int;
38
+ json: typeof json;
39
+ mediumint: typeof mediumint;
40
+ real: typeof real;
41
+ serial: typeof serial;
42
+ smallint: typeof smallint;
43
+ text: typeof text;
44
+ time: typeof time;
45
+ timestamp: typeof timestamp;
46
+ tinyint: typeof tinyint;
47
+ varbinary: typeof varbinary;
48
+ varchar: typeof varchar;
49
+ year: typeof year;
50
+ };
51
+ export type SingleStoreColumnBuilders = ReturnType<typeof getSingleStoreColumnBuilders>;
@@ -0,0 +1,56 @@
1
+ import { bigint } from "./bigint.js";
2
+ import { binary } from "./binary.js";
3
+ import { boolean } from "./boolean.js";
4
+ import { char } from "./char.js";
5
+ import { customType } from "./custom.js";
6
+ import { date } from "./date.js";
7
+ import { datetime } from "./datetime.js";
8
+ import { decimal } from "./decimal.js";
9
+ import { double } from "./double.js";
10
+ import { singlestoreEnum } from "./enum.js";
11
+ import { float } from "./float.js";
12
+ import { int } from "./int.js";
13
+ import { json } from "./json.js";
14
+ import { mediumint } from "./mediumint.js";
15
+ import { real } from "./real.js";
16
+ import { serial } from "./serial.js";
17
+ import { smallint } from "./smallint.js";
18
+ import { text } from "./text.js";
19
+ import { time } from "./time.js";
20
+ import { timestamp } from "./timestamp.js";
21
+ import { tinyint } from "./tinyint.js";
22
+ import { varbinary } from "./varbinary.js";
23
+ import { varchar } from "./varchar.js";
24
+ import { year } from "./year.js";
25
+ function getSingleStoreColumnBuilders() {
26
+ return {
27
+ bigint,
28
+ binary,
29
+ boolean,
30
+ char,
31
+ customType,
32
+ date,
33
+ datetime,
34
+ decimal,
35
+ double,
36
+ singlestoreEnum,
37
+ float,
38
+ int,
39
+ json,
40
+ mediumint,
41
+ real,
42
+ serial,
43
+ smallint,
44
+ text,
45
+ time,
46
+ timestamp,
47
+ tinyint,
48
+ varbinary,
49
+ varchar,
50
+ year
51
+ };
52
+ }
53
+ export {
54
+ getSingleStoreColumnBuilders
55
+ };
56
+ //# sourceMappingURL=all.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/singlestore-core/columns/all.ts"],"sourcesContent":["import { bigint } from './bigint.ts';\nimport { binary } from './binary.ts';\nimport { boolean } from './boolean.ts';\nimport { char } from './char.ts';\nimport { customType } from './custom.ts';\nimport { date } from './date.ts';\nimport { datetime } from './datetime.ts';\nimport { decimal } from './decimal.ts';\nimport { double } from './double.ts';\nimport { singlestoreEnum } from './enum.ts';\nimport { float } from './float.ts';\nimport { int } from './int.ts';\nimport { json } from './json.ts';\nimport { mediumint } from './mediumint.ts';\nimport { real } from './real.ts';\nimport { serial } from './serial.ts';\nimport { smallint } from './smallint.ts';\nimport { text } from './text.ts';\nimport { time } from './time.ts';\nimport { timestamp } from './timestamp.ts';\nimport { tinyint } from './tinyint.ts';\nimport { varbinary } from './varbinary.ts';\nimport { varchar } from './varchar.ts';\nimport { year } from './year.ts';\n\nexport function getSingleStoreColumnBuilders() {\n\treturn {\n\t\tbigint,\n\t\tbinary,\n\t\tboolean,\n\t\tchar,\n\t\tcustomType,\n\t\tdate,\n\t\tdatetime,\n\t\tdecimal,\n\t\tdouble,\n\t\tsinglestoreEnum,\n\t\tfloat,\n\t\tint,\n\t\tjson,\n\t\tmediumint,\n\t\treal,\n\t\tserial,\n\t\tsmallint,\n\t\ttext,\n\t\ttime,\n\t\ttimestamp,\n\t\ttinyint,\n\t\tvarbinary,\n\t\tvarchar,\n\t\tyear,\n\t};\n}\n\nexport type SingleStoreColumnBuilders = ReturnType<typeof getSingleStoreColumnBuilders>;\n"],"mappings":"AAAA,SAAS,cAAc;AACvB,SAAS,cAAc;AACvB,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,SAAS,uBAAuB;AAChC,SAAS,aAAa;AACtB,SAAS,WAAW;AACpB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,YAAY;AAEd,SAAS,+BAA+B;AAC9C,SAAO;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACD;","names":[]}
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var bigint_exports = {};
20
+ __export(bigint_exports, {
21
+ SingleStoreBigInt53: () => SingleStoreBigInt53,
22
+ SingleStoreBigInt53Builder: () => SingleStoreBigInt53Builder,
23
+ SingleStoreBigInt64: () => SingleStoreBigInt64,
24
+ SingleStoreBigInt64Builder: () => SingleStoreBigInt64Builder,
25
+ bigint: () => bigint
26
+ });
27
+ module.exports = __toCommonJS(bigint_exports);
28
+ var import_entity = require("../../entity.cjs");
29
+ var import_utils = require("../../utils.cjs");
30
+ var import_common = require("./common.cjs");
31
+ class SingleStoreBigInt53Builder extends import_common.SingleStoreColumnBuilderWithAutoIncrement {
32
+ static [import_entity.entityKind] = "SingleStoreBigInt53Builder";
33
+ constructor(name, unsigned = false) {
34
+ super(name, "number", "SingleStoreBigInt53");
35
+ this.config.unsigned = unsigned;
36
+ }
37
+ /** @internal */
38
+ build(table) {
39
+ return new SingleStoreBigInt53(
40
+ table,
41
+ this.config
42
+ );
43
+ }
44
+ }
45
+ class SingleStoreBigInt53 extends import_common.SingleStoreColumnWithAutoIncrement {
46
+ static [import_entity.entityKind] = "SingleStoreBigInt53";
47
+ getSQLType() {
48
+ return `bigint${this.config.unsigned ? " unsigned" : ""}`;
49
+ }
50
+ mapFromDriverValue(value) {
51
+ if (typeof value === "number") {
52
+ return value;
53
+ }
54
+ return Number(value);
55
+ }
56
+ }
57
+ class SingleStoreBigInt64Builder extends import_common.SingleStoreColumnBuilderWithAutoIncrement {
58
+ static [import_entity.entityKind] = "SingleStoreBigInt64Builder";
59
+ constructor(name, unsigned = false) {
60
+ super(name, "bigint", "SingleStoreBigInt64");
61
+ this.config.unsigned = unsigned;
62
+ }
63
+ /** @internal */
64
+ build(table) {
65
+ return new SingleStoreBigInt64(
66
+ table,
67
+ this.config
68
+ );
69
+ }
70
+ }
71
+ class SingleStoreBigInt64 extends import_common.SingleStoreColumnWithAutoIncrement {
72
+ static [import_entity.entityKind] = "SingleStoreBigInt64";
73
+ getSQLType() {
74
+ return `bigint${this.config.unsigned ? " unsigned" : ""}`;
75
+ }
76
+ // eslint-disable-next-line unicorn/prefer-native-coercion-functions
77
+ mapFromDriverValue(value) {
78
+ return BigInt(value);
79
+ }
80
+ }
81
+ function bigint(a, b) {
82
+ const { name, config } = (0, import_utils.getColumnNameAndConfig)(a, b);
83
+ if (config.mode === "number") {
84
+ return new SingleStoreBigInt53Builder(name, config.unsigned);
85
+ }
86
+ return new SingleStoreBigInt64Builder(name, config.unsigned);
87
+ }
88
+ // Annotate the CommonJS export names for ESM import in node:
89
+ 0 && (module.exports = {
90
+ SingleStoreBigInt53,
91
+ SingleStoreBigInt53Builder,
92
+ SingleStoreBigInt64,
93
+ SingleStoreBigInt64Builder,
94
+ bigint
95
+ });
96
+ //# sourceMappingURL=bigint.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/singlestore-core/columns/bigint.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnySingleStoreTable } from '~/singlestore-core/table.ts';\nimport { getColumnNameAndConfig } from '~/utils.ts';\nimport { SingleStoreColumnBuilderWithAutoIncrement, SingleStoreColumnWithAutoIncrement } from './common.ts';\n\nexport type SingleStoreBigInt53BuilderInitial<TName extends string> = SingleStoreBigInt53Builder<{\n\tname: TName;\n\tdataType: 'number';\n\tcolumnType: 'SingleStoreBigInt53';\n\tdata: number;\n\tdriverParam: number | string;\n\tenumValues: undefined;\n\tgenerated: undefined;\n}>;\n\nexport class SingleStoreBigInt53Builder<T extends ColumnBuilderBaseConfig<'number', 'SingleStoreBigInt53'>>\n\textends SingleStoreColumnBuilderWithAutoIncrement<T, { unsigned: boolean }>\n{\n\tstatic override readonly [entityKind]: string = 'SingleStoreBigInt53Builder';\n\n\tconstructor(name: T['name'], unsigned: boolean = false) {\n\t\tsuper(name, 'number', 'SingleStoreBigInt53');\n\t\tthis.config.unsigned = unsigned;\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnySingleStoreTable<{ name: TTableName }>,\n\t): SingleStoreBigInt53<MakeColumnConfig<T, TTableName>> {\n\t\treturn new SingleStoreBigInt53<MakeColumnConfig<T, TTableName>>(\n\t\t\ttable,\n\t\t\tthis.config as ColumnBuilderRuntimeConfig<any, any>,\n\t\t);\n\t}\n}\n\nexport class SingleStoreBigInt53<T extends ColumnBaseConfig<'number', 'SingleStoreBigInt53'>>\n\textends SingleStoreColumnWithAutoIncrement<T, { unsigned: boolean }>\n{\n\tstatic override readonly [entityKind]: string = 'SingleStoreBigInt53';\n\n\tgetSQLType(): string {\n\t\treturn `bigint${this.config.unsigned ? ' unsigned' : ''}`;\n\t}\n\n\toverride mapFromDriverValue(value: number | string): number {\n\t\tif (typeof value === 'number') {\n\t\t\treturn value;\n\t\t}\n\t\treturn Number(value);\n\t}\n}\n\nexport type SingleStoreBigInt64BuilderInitial<TName extends string> = SingleStoreBigInt64Builder<{\n\tname: TName;\n\tdataType: 'bigint';\n\tcolumnType: 'SingleStoreBigInt64';\n\tdata: bigint;\n\tdriverParam: string;\n\tenumValues: undefined;\n\tgenerated: undefined;\n}>;\n\nexport class SingleStoreBigInt64Builder<T extends ColumnBuilderBaseConfig<'bigint', 'SingleStoreBigInt64'>>\n\textends SingleStoreColumnBuilderWithAutoIncrement<T, { unsigned: boolean }>\n{\n\tstatic override readonly [entityKind]: string = 'SingleStoreBigInt64Builder';\n\n\tconstructor(name: T['name'], unsigned: boolean = false) {\n\t\tsuper(name, 'bigint', 'SingleStoreBigInt64');\n\t\tthis.config.unsigned = unsigned;\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnySingleStoreTable<{ name: TTableName }>,\n\t): SingleStoreBigInt64<MakeColumnConfig<T, TTableName>> {\n\t\treturn new SingleStoreBigInt64<MakeColumnConfig<T, TTableName>>(\n\t\t\ttable,\n\t\t\tthis.config as ColumnBuilderRuntimeConfig<any, any>,\n\t\t);\n\t}\n}\n\nexport class SingleStoreBigInt64<T extends ColumnBaseConfig<'bigint', 'SingleStoreBigInt64'>>\n\textends SingleStoreColumnWithAutoIncrement<T, { unsigned: boolean }>\n{\n\tstatic override readonly [entityKind]: string = 'SingleStoreBigInt64';\n\n\tgetSQLType(): string {\n\t\treturn `bigint${this.config.unsigned ? ' unsigned' : ''}`;\n\t}\n\n\t// eslint-disable-next-line unicorn/prefer-native-coercion-functions\n\toverride mapFromDriverValue(value: string): bigint {\n\t\treturn BigInt(value);\n\t}\n}\n\nexport interface SingleStoreBigIntConfig<T extends 'number' | 'bigint' = 'number' | 'bigint'> {\n\tmode: T;\n\tunsigned?: boolean;\n}\n\nexport function bigint<TMode extends SingleStoreBigIntConfig['mode']>(\n\tconfig: SingleStoreBigIntConfig<TMode>,\n): TMode extends 'number' ? SingleStoreBigInt53BuilderInitial<''> : SingleStoreBigInt64BuilderInitial<''>;\nexport function bigint<TName extends string, TMode extends SingleStoreBigIntConfig['mode']>(\n\tname: TName,\n\tconfig: SingleStoreBigIntConfig<TMode>,\n): TMode extends 'number' ? SingleStoreBigInt53BuilderInitial<TName> : SingleStoreBigInt64BuilderInitial<TName>;\nexport function bigint(a?: string | SingleStoreBigIntConfig, b?: SingleStoreBigIntConfig) {\n\tconst { name, config } = getColumnNameAndConfig<SingleStoreBigIntConfig>(a, b);\n\tif (config.mode === 'number') {\n\t\treturn new SingleStoreBigInt53Builder(name, config.unsigned);\n\t}\n\treturn new SingleStoreBigInt64Builder(name, config.unsigned);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAA2B;AAE3B,mBAAuC;AACvC,oBAA8F;AAYvF,MAAM,mCACJ,wDACT;AAAA,EACC,QAA0B,wBAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB,WAAoB,OAAO;AACvD,UAAM,MAAM,UAAU,qBAAqB;AAC3C,SAAK,OAAO,WAAW;AAAA,EACxB;AAAA;AAAA,EAGS,MACR,OACuD;AACvD,WAAO,IAAI;AAAA,MACV;AAAA,MACA,KAAK;AAAA,IACN;AAAA,EACD;AACD;AAEO,MAAM,4BACJ,iDACT;AAAA,EACC,QAA0B,wBAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO,SAAS,KAAK,OAAO,WAAW,cAAc,EAAE;AAAA,EACxD;AAAA,EAES,mBAAmB,OAAgC;AAC3D,QAAI,OAAO,UAAU,UAAU;AAC9B,aAAO;AAAA,IACR;AACA,WAAO,OAAO,KAAK;AAAA,EACpB;AACD;AAYO,MAAM,mCACJ,wDACT;AAAA,EACC,QAA0B,wBAAU,IAAY;AAAA,EAEhD,YAAY,MAAiB,WAAoB,OAAO;AACvD,UAAM,MAAM,UAAU,qBAAqB;AAC3C,SAAK,OAAO,WAAW;AAAA,EACxB;AAAA;AAAA,EAGS,MACR,OACuD;AACvD,WAAO,IAAI;AAAA,MACV;AAAA,MACA,KAAK;AAAA,IACN;AAAA,EACD;AACD;AAEO,MAAM,4BACJ,iDACT;AAAA,EACC,QAA0B,wBAAU,IAAY;AAAA,EAEhD,aAAqB;AACpB,WAAO,SAAS,KAAK,OAAO,WAAW,cAAc,EAAE;AAAA,EACxD;AAAA;AAAA,EAGS,mBAAmB,OAAuB;AAClD,WAAO,OAAO,KAAK;AAAA,EACpB;AACD;AAcO,SAAS,OAAO,GAAsC,GAA6B;AACzF,QAAM,EAAE,MAAM,OAAO,QAAI,qCAAgD,GAAG,CAAC;AAC7E,MAAI,OAAO,SAAS,UAAU;AAC7B,WAAO,IAAI,2BAA2B,MAAM,OAAO,QAAQ;AAAA,EAC5D;AACA,SAAO,IAAI,2BAA2B,MAAM,OAAO,QAAQ;AAC5D;","names":[]}
@@ -0,0 +1,54 @@
1
+ import type { ColumnBuilderBaseConfig } from "../../column-builder.cjs";
2
+ import type { ColumnBaseConfig } from "../../column.cjs";
3
+ import { entityKind } from "../../entity.cjs";
4
+ import { SingleStoreColumnBuilderWithAutoIncrement, SingleStoreColumnWithAutoIncrement } from "./common.cjs";
5
+ export type SingleStoreBigInt53BuilderInitial<TName extends string> = SingleStoreBigInt53Builder<{
6
+ name: TName;
7
+ dataType: 'number';
8
+ columnType: 'SingleStoreBigInt53';
9
+ data: number;
10
+ driverParam: number | string;
11
+ enumValues: undefined;
12
+ generated: undefined;
13
+ }>;
14
+ export declare class SingleStoreBigInt53Builder<T extends ColumnBuilderBaseConfig<'number', 'SingleStoreBigInt53'>> extends SingleStoreColumnBuilderWithAutoIncrement<T, {
15
+ unsigned: boolean;
16
+ }> {
17
+ static readonly [entityKind]: string;
18
+ constructor(name: T['name'], unsigned?: boolean);
19
+ }
20
+ export declare class SingleStoreBigInt53<T extends ColumnBaseConfig<'number', 'SingleStoreBigInt53'>> extends SingleStoreColumnWithAutoIncrement<T, {
21
+ unsigned: boolean;
22
+ }> {
23
+ static readonly [entityKind]: string;
24
+ getSQLType(): string;
25
+ mapFromDriverValue(value: number | string): number;
26
+ }
27
+ export type SingleStoreBigInt64BuilderInitial<TName extends string> = SingleStoreBigInt64Builder<{
28
+ name: TName;
29
+ dataType: 'bigint';
30
+ columnType: 'SingleStoreBigInt64';
31
+ data: bigint;
32
+ driverParam: string;
33
+ enumValues: undefined;
34
+ generated: undefined;
35
+ }>;
36
+ export declare class SingleStoreBigInt64Builder<T extends ColumnBuilderBaseConfig<'bigint', 'SingleStoreBigInt64'>> extends SingleStoreColumnBuilderWithAutoIncrement<T, {
37
+ unsigned: boolean;
38
+ }> {
39
+ static readonly [entityKind]: string;
40
+ constructor(name: T['name'], unsigned?: boolean);
41
+ }
42
+ export declare class SingleStoreBigInt64<T extends ColumnBaseConfig<'bigint', 'SingleStoreBigInt64'>> extends SingleStoreColumnWithAutoIncrement<T, {
43
+ unsigned: boolean;
44
+ }> {
45
+ static readonly [entityKind]: string;
46
+ getSQLType(): string;
47
+ mapFromDriverValue(value: string): bigint;
48
+ }
49
+ export interface SingleStoreBigIntConfig<T extends 'number' | 'bigint' = 'number' | 'bigint'> {
50
+ mode: T;
51
+ unsigned?: boolean;
52
+ }
53
+ export declare function bigint<TMode extends SingleStoreBigIntConfig['mode']>(config: SingleStoreBigIntConfig<TMode>): TMode extends 'number' ? SingleStoreBigInt53BuilderInitial<''> : SingleStoreBigInt64BuilderInitial<''>;
54
+ export declare function bigint<TName extends string, TMode extends SingleStoreBigIntConfig['mode']>(name: TName, config: SingleStoreBigIntConfig<TMode>): TMode extends 'number' ? SingleStoreBigInt53BuilderInitial<TName> : SingleStoreBigInt64BuilderInitial<TName>;
@@ -0,0 +1,54 @@
1
+ import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
2
+ import type { ColumnBaseConfig } from "../../column.js";
3
+ import { entityKind } from "../../entity.js";
4
+ import { SingleStoreColumnBuilderWithAutoIncrement, SingleStoreColumnWithAutoIncrement } from "./common.js";
5
+ export type SingleStoreBigInt53BuilderInitial<TName extends string> = SingleStoreBigInt53Builder<{
6
+ name: TName;
7
+ dataType: 'number';
8
+ columnType: 'SingleStoreBigInt53';
9
+ data: number;
10
+ driverParam: number | string;
11
+ enumValues: undefined;
12
+ generated: undefined;
13
+ }>;
14
+ export declare class SingleStoreBigInt53Builder<T extends ColumnBuilderBaseConfig<'number', 'SingleStoreBigInt53'>> extends SingleStoreColumnBuilderWithAutoIncrement<T, {
15
+ unsigned: boolean;
16
+ }> {
17
+ static readonly [entityKind]: string;
18
+ constructor(name: T['name'], unsigned?: boolean);
19
+ }
20
+ export declare class SingleStoreBigInt53<T extends ColumnBaseConfig<'number', 'SingleStoreBigInt53'>> extends SingleStoreColumnWithAutoIncrement<T, {
21
+ unsigned: boolean;
22
+ }> {
23
+ static readonly [entityKind]: string;
24
+ getSQLType(): string;
25
+ mapFromDriverValue(value: number | string): number;
26
+ }
27
+ export type SingleStoreBigInt64BuilderInitial<TName extends string> = SingleStoreBigInt64Builder<{
28
+ name: TName;
29
+ dataType: 'bigint';
30
+ columnType: 'SingleStoreBigInt64';
31
+ data: bigint;
32
+ driverParam: string;
33
+ enumValues: undefined;
34
+ generated: undefined;
35
+ }>;
36
+ export declare class SingleStoreBigInt64Builder<T extends ColumnBuilderBaseConfig<'bigint', 'SingleStoreBigInt64'>> extends SingleStoreColumnBuilderWithAutoIncrement<T, {
37
+ unsigned: boolean;
38
+ }> {
39
+ static readonly [entityKind]: string;
40
+ constructor(name: T['name'], unsigned?: boolean);
41
+ }
42
+ export declare class SingleStoreBigInt64<T extends ColumnBaseConfig<'bigint', 'SingleStoreBigInt64'>> extends SingleStoreColumnWithAutoIncrement<T, {
43
+ unsigned: boolean;
44
+ }> {
45
+ static readonly [entityKind]: string;
46
+ getSQLType(): string;
47
+ mapFromDriverValue(value: string): bigint;
48
+ }
49
+ export interface SingleStoreBigIntConfig<T extends 'number' | 'bigint' = 'number' | 'bigint'> {
50
+ mode: T;
51
+ unsigned?: boolean;
52
+ }
53
+ export declare function bigint<TMode extends SingleStoreBigIntConfig['mode']>(config: SingleStoreBigIntConfig<TMode>): TMode extends 'number' ? SingleStoreBigInt53BuilderInitial<''> : SingleStoreBigInt64BuilderInitial<''>;
54
+ export declare function bigint<TName extends string, TMode extends SingleStoreBigIntConfig['mode']>(name: TName, config: SingleStoreBigIntConfig<TMode>): TMode extends 'number' ? SingleStoreBigInt53BuilderInitial<TName> : SingleStoreBigInt64BuilderInitial<TName>;
@@ -0,0 +1,68 @@
1
+ import { entityKind } from "../../entity.js";
2
+ import { getColumnNameAndConfig } from "../../utils.js";
3
+ import { SingleStoreColumnBuilderWithAutoIncrement, SingleStoreColumnWithAutoIncrement } from "./common.js";
4
+ class SingleStoreBigInt53Builder extends SingleStoreColumnBuilderWithAutoIncrement {
5
+ static [entityKind] = "SingleStoreBigInt53Builder";
6
+ constructor(name, unsigned = false) {
7
+ super(name, "number", "SingleStoreBigInt53");
8
+ this.config.unsigned = unsigned;
9
+ }
10
+ /** @internal */
11
+ build(table) {
12
+ return new SingleStoreBigInt53(
13
+ table,
14
+ this.config
15
+ );
16
+ }
17
+ }
18
+ class SingleStoreBigInt53 extends SingleStoreColumnWithAutoIncrement {
19
+ static [entityKind] = "SingleStoreBigInt53";
20
+ getSQLType() {
21
+ return `bigint${this.config.unsigned ? " unsigned" : ""}`;
22
+ }
23
+ mapFromDriverValue(value) {
24
+ if (typeof value === "number") {
25
+ return value;
26
+ }
27
+ return Number(value);
28
+ }
29
+ }
30
+ class SingleStoreBigInt64Builder extends SingleStoreColumnBuilderWithAutoIncrement {
31
+ static [entityKind] = "SingleStoreBigInt64Builder";
32
+ constructor(name, unsigned = false) {
33
+ super(name, "bigint", "SingleStoreBigInt64");
34
+ this.config.unsigned = unsigned;
35
+ }
36
+ /** @internal */
37
+ build(table) {
38
+ return new SingleStoreBigInt64(
39
+ table,
40
+ this.config
41
+ );
42
+ }
43
+ }
44
+ class SingleStoreBigInt64 extends SingleStoreColumnWithAutoIncrement {
45
+ static [entityKind] = "SingleStoreBigInt64";
46
+ getSQLType() {
47
+ return `bigint${this.config.unsigned ? " unsigned" : ""}`;
48
+ }
49
+ // eslint-disable-next-line unicorn/prefer-native-coercion-functions
50
+ mapFromDriverValue(value) {
51
+ return BigInt(value);
52
+ }
53
+ }
54
+ function bigint(a, b) {
55
+ const { name, config } = getColumnNameAndConfig(a, b);
56
+ if (config.mode === "number") {
57
+ return new SingleStoreBigInt53Builder(name, config.unsigned);
58
+ }
59
+ return new SingleStoreBigInt64Builder(name, config.unsigned);
60
+ }
61
+ export {
62
+ SingleStoreBigInt53,
63
+ SingleStoreBigInt53Builder,
64
+ SingleStoreBigInt64,
65
+ SingleStoreBigInt64Builder,
66
+ bigint
67
+ };
68
+ //# sourceMappingURL=bigint.js.map